
springboot 源码缓存机制分析
CacheAutoConfiguration 上有注解 @Import(CacheConfigurationImportSelector.class) => selectImports => RedisCacheConfiguration.class。afterPropertiesSet 最终会调用 loadCaches由子类去实现, RedisCacheManager里 从 initialCacheConfiguration 这个map里面去拿 , 但是默认的 这个map也是空的。如何存到内存里去的?








