一、@Cacheable属性1. cacheName/value 指定缓存组件的名字,将方法的返回结果放入哪个缓存中,用数组可以指定多个缓存2. key缓存数据时使用的key Spel表达式拼接key /**      * 拼接key      * @param id      * @return      */@Cacheable(cacheNames = "emp",key = "#root.
原创 2021-04-14 11:33:21
124阅读
接上一篇四、@Cacheable 运行流程 续集1. 自动配置类:CacheAutoConfiguration2. CacheAutoConfiguration.CacheConfigurationImportSelector.class 返回内容如下 缓存配置类:0 = "org.springframework.boot.autoconfigure.cache.GenericCache...
原创 2022-01-30 10:27:07
142阅读
一、@Cacheable属性1. cacheName/value指定缓存组件的名字,将方法的返回结果放入哪个缓存中,用数组可以指定多个缓存2. key缓存数据时使用的key Spel表达式拼接key /** * 拼接key
原创 2022-02-11 10:11:19
46阅读
四、@Cacheable 运行流程 续集1. 自动配置类:CacheAutoConfiguration2. CacheAutoConfiguration.CacheConfigurationImportSelector.class 返回内容如下 缓存配置类:0 = "org.springframework.boot.autoconfigure.cache.GenericCacheConfigura
原创 2021-04-14 11:33:05
364阅读