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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    org.springframework.boot.autoconfigure.cache.CacheType
     
  • Element Details

    • cacheProvider

      @PropertyMapping("spring.cache.type") org.springframework.boot.autoconfigure.cache.CacheType cacheProvider
      Default:
      NONE