类 CacheAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration
@Configuration @ConditionalOnClass(org.springframework.cache.CacheManager.class) @ConditionalOnBean(org.springframework.cache.interceptor.CacheAspectSupport.class) @ConditionalOnMissingBean(value=org.springframework.cache.CacheManager.class, name="cacheResolver") @EnableConfigurationProperties(CacheProperties.class) @AutoConfigureAfter({CouchbaseAutoConfiguration.class,HazelcastAutoConfiguration.class,HibernateJpaAutoConfiguration.class,RedisAutoConfiguration.class}) @Import(org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration.CacheConfigurationImportSelector.class) public class CacheAutoConfiguration extends Object
Auto-configuration
for the cache abstraction. Creates aCacheManager
if necessary when caching is enabled viaEnableCaching
.Cache store can be auto-detected or specified explicitly via configuration.
- 从以下版本开始:
- 1.3.0
- 另请参阅:
EnableCaching
嵌套类概要
嵌套类 修饰符和类型 类 说明 protected static class
CacheAutoConfiguration.CacheManagerJpaDependencyConfiguration
构造器概要
构造器 构造器 说明 CacheAutoConfiguration()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration.CacheManagerValidator
cacheAutoConfigurationValidator(CacheProperties cacheProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.cache.CacheManager> cacheManager)
CacheManagerCustomizers
cacheManagerCustomizers(org.springframework.beans.factory.ObjectProvider<CacheManagerCustomizer<?>> customizers)
构造器详细资料
CacheAutoConfiguration
public CacheAutoConfiguration()
方法详细资料
cacheManagerCustomizers
@Bean @ConditionalOnMissingBean public CacheManagerCustomizers cacheManagerCustomizers(org.springframework.beans.factory.ObjectProvider<CacheManagerCustomizer<?>> customizers)
cacheAutoConfigurationValidator
@Bean public org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration.CacheManagerValidator cacheAutoConfigurationValidator(CacheProperties cacheProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.cache.CacheManager> cacheManager)