Tagged articles

first-level cache

9 articles · Page 1 of 1
CodeSmart Hoops
CodeSmart Hoops
Jun 8, 2026 · Backend Development

Hands‑On Unit Tests for a Complete MyBatis Integration with Spring Boot 3

This guide walks through a full MyBatis unit‑testing suite built on Spring Boot 3.x and JDK 17+, showing how to configure Maven dependencies, set up an H2 datasource, write POJOs, define mapper interfaces and XML, and verify features such as mapper proxies, parameter binding, dynamic SQL, resultMap mapping, camel‑case conversion and first‑level caching with JUnit 5.

Dynamic SQLJUnit 5MyBatis
0 likes · 25 min read
Hands‑On Unit Tests for a Complete MyBatis Integration with Spring Boot 3
Programmer DD
Programmer DD
Jul 4, 2023 · Backend Development

Unlock MyBatis Performance: Mastering First and Second Level Caches

This article explains how MyBatis first‑level (session) and second‑level (cross‑session) caches work, the conditions required for them to function, common pitfalls when integrating with SpringBoot, and step‑by‑step instructions to enable and safely use second‑level caching in real projects.

Backend DevelopmentJavaMyBatis
0 likes · 11 min read
Unlock MyBatis Performance: Mastering First and Second Level Caches
Selected Java Interview Questions
Selected Java Interview Questions
Jun 14, 2023 · Backend Development

Understanding MyBatis First‑Level and Second‑Level Cache and Their Integration with Spring Boot

The article explains MyBatis first‑level and second‑level caching mechanisms, their activation conditions, integration pitfalls with Spring Boot, and how to enable and use them safely, including configuration steps, code examples, and warnings about hidden risks of second‑level cache.

Backend DevelopmentJavaMyBatis
0 likes · 12 min read
Understanding MyBatis First‑Level and Second‑Level Cache and Their Integration with Spring Boot
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Sep 20, 2022 · Backend Development

Understanding MyBatis First-Level and Second-Level Caches: Principles, Implementation, and Differences

This article explains the principles, implementation steps, and configuration of MyBatis first‑level (SqlSession) and second‑level (mapper) caches, compares their scopes and behaviors, and provides practical guidance on when and how to enable each cache to improve database query performance.

BackendJavaMyBatis
0 likes · 7 min read
Understanding MyBatis First-Level and Second-Level Caches: Principles, Implementation, and Differences
Top Architect
Top Architect
May 8, 2022 · Backend Development

Understanding MyBatis First‑Level and Second‑Level Caching with Code Examples

This article explains the principles and practical usage of MyBatis first‑level and second‑level caches, describing how caching reduces database load, showing configuration steps, code demonstrations, flow diagrams, and important considerations such as cache invalidation and LRU eviction.

Backend DevelopmentJavaMyBatis
0 likes · 10 min read
Understanding MyBatis First‑Level and Second‑Level Caching with Code Examples