注释类型 AutoConfigureCache
@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited @ImportAutoConfiguration public @interface AutoConfigureCache
Annotation that can be applied to a test class to configure a testCacheManager
if none has been defined yet. By default this annotation installs aNoOpCacheManager
.- 从以下版本开始:
- 1.4.0
可选元素概要
可选元素 修饰符和类型 可选元素 说明 org.springframework.boot.autoconfigure.cache.CacheType
cacheProvider
元素详细资料
cacheProvider
@PropertyMapping("spring.cache.type") org.springframework.boot.autoconfigure.cache.CacheType cacheProvider
- 默认值:
- org.springframework.boot.autoconfigure.cache.CacheType.NONE