1. Contents of this chapter
Use ehcache to implement the system cache function, and configure the second-level cache of mybatis, customize the key of the paging cache, identify the entity type, and generate a key value based on the configuration of the entity attribute to identify the cached data.
2. Development video
SpringBoot+Mybaits to build a general management system Example 3: cache management function realization
3. Cache configuration
3.1 Cache introduction
The specific cache dependency configuration is as follows:
<dependency