Annotation Type 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
.- Since:
- 1.4.0
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description org.springframework.boot.autoconfigure.cache.CacheType
cacheProvider
Element Detail
cacheProvider
@PropertyMapping("spring.cache.type") org.springframework.boot.autoconfigure.cache.CacheType cacheProvider
- Default:
- org.springframework.boot.autoconfigure.cache.CacheType.NONE