org.springframework.cache.jcache.config

Class JCacheConfigurerSupport

    • Constructor Detail

      • JCacheConfigurerSupport

        public JCacheConfigurerSupport()
    • Method Detail

      • exceptionCacheResolver

        @Nullable
        public CacheResolver exceptionCacheResolver()
        Description copied from interface: JCacheConfigurer
        Return the CacheResolver bean to use to resolve exception caches for annotation-driven cache management. Implementations must explicitly declare @Bean, e.g.
         @Configuration
         @EnableCaching
         public class AppConfig extends JCacheConfigurerSupport {
             @Bean // important!
             @Override
             public CacheResolver exceptionCacheResolver() {
                 // configure and return CacheResolver instance
             }
             // ...
         }
         
        See EnableCaching for more complete examples.
        Specified by:
        exceptionCacheResolver in interface JCacheConfigurer