Annotation Interface AutoConfigureCache
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Inherited
@ImportAutoConfiguration
public @interface AutoConfigureCache
Annotation that can be applied to a test class to configure a test
CacheManager
if none has been defined yet. By default this annotation installs a
NoOpCacheManager
.- Since:
- 1.4.0
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionorg.springframework.boot.autoconfigure.cache.CacheType
-
Element Details
-
cacheProvider
@PropertyMapping("spring.cache.type") org.springframework.boot.autoconfigure.cache.CacheType cacheProvider- Default:
- NONE
-