table of Contents
1.1 Dynamic SQL: if, used when conditional judgment (recommended)
1.2 Dynamic SQL: choose (when, otherwise ), branch selection (recommended)
1.4 Dynamic SQL: foreach (recommended)
1.4.1 Dynamic SQL: Batch query: foreach
1.4.2 Dynamic SQL: Batch save: foreach
1.7 Dynamic SQL: Extracting repeated SQL fragments
2. MyBatis's caching mechanism (first level cache and second level cache)
2.1 Explanation of Level 1 Cache and Four Cases of Level 1 Cache Failure
2.2 Explanation of the second level cache and how to use it
2.2.2 Some setting items of the second level cache setting
2.3 Hand-painted-the working mechanism of MyBatis primary cache and secondary cache
2.4 MyBatis and third-party cache integration
2.5 Non-hand-painted-the working mechanism of MyBatis primary cache and secondary cache
1. Dynamic SQL of MyBatis
1.1 Dynamic SQL: if, used when conditional judgment (recommended)
1.2 Dynamic SQL: choose (when, otherwise ), branch selection (recommended)
1.3 Dynamic SQL: trim (where, set), when the SQL statement needs to add/subtract the prefix and suffix
1.4 Dynamic SQL: foreach (recommended)
1.4.1 Dynamic SQL: Batch query: foreach
1.4.2 Dynamic SQL: Batch save: foreach
1.5 Dynamic SQL: bind
1.6 OGNL expression
1.7 Dynamic SQL: Extracting repeated SQL fragments
2. MyBatis's caching mechanism (first level cache and second level cache)
2.1 Explanation of Level 1 Cache and Four Cases of Level 1 Cache Failure
2.2 Explanation of the second level cache and how to use it
2.2.2 Some setting items of the second level cache setting
2.3 Hand-painted-the working mechanism of MyBatis primary cache and secondary cache
(1) A sqlSession object represents a session with the database.
(2) MySQL is a database, not a professional cache, so it sets aside a cache interface for others to implement it Cache
2.4 MyBatis and third-party cache integration
2.5 Non-hand-painted-the working mechanism of MyBatis primary cache and secondary cache