类 JCacheConfigurerSupport
- java.lang.Object
- org.springframework.cache.annotation.CachingConfigurerSupport
- org.springframework.cache.jcache.config.JCacheConfigurerSupport
- 所有已实现的接口:
CachingConfigurer
,JCacheConfigurer
public class JCacheConfigurerSupport extends CachingConfigurerSupport implements JCacheConfigurer
An extension ofCachingConfigurerSupport
that also implementsJCacheConfigurer
.Users of JSR-107 annotations may extend from this class rather than implementing from
JCacheConfigurer
directly.- 从以下版本开始:
- 4.1
- 作者:
- Stephane Nicoll
- 另请参阅:
JCacheConfigurer
,CachingConfigurerSupport
构造器概要
构造器 构造器 说明 JCacheConfigurerSupport()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 CacheResolver
exceptionCacheResolver()
Return theCacheResolver
bean to use to resolve exception caches for annotation-driven cache management.从类继承的方法 org.springframework.cache.annotation.CachingConfigurerSupport
cacheManager, cacheResolver, errorHandler, keyGenerator
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.cache.annotation.CachingConfigurer
cacheManager, cacheResolver, errorHandler, keyGenerator
构造器详细资料
JCacheConfigurerSupport
public JCacheConfigurerSupport()
方法详细资料
exceptionCacheResolver
public CacheResolver exceptionCacheResolver()
从接口复制的说明:JCacheConfigurer
Return theCacheResolver
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 } // ... }
SeeEnableCaching
for more complete examples.- 指定者:
exceptionCacheResolver
在接口中JCacheConfigurer