xxx AutoConfigration 用来选择配置哪个Configration(使哪个配置类生效)
Configration 用来把bean放入容器

如:CacheAutoConfiguration
CaffeineCacheConfiguration
CouchbaseCacheConfiguration
GenericCacheConfiguration
HazelcastCacheConfiguration
RedisCacheConfiguration
SimpleCacheConfiguration(默认配置)

等配置类,并通过每个configration头上的条件来判断加载哪个配置类,如cache默认加载的是SimpleCacheConfiguration,如果加载了SimpleCacheConfiguration,就会导入
他的cacheManager(缓存管理器)-----CouchbaseCacheManager。
如果生效的是RedisCacheConfiguration类,那么导入的则会使redis的bean-------RedisCacheManager(redis的缓存管理器)

SimpleCacheConfigurationspringboot缓存相关
RedisCacheConfigurationspringboot缓存相关

相关文章:

  • 2021-09-15
  • 2021-12-07
  • 2022-03-10
  • 2022-12-23
  • 2021-11-18
  • 2021-07-16
  • 2022-12-23
猜你喜欢
  • 2021-11-24
  • 2021-09-30
  • 2022-03-05
  • 2021-08-09
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案