@Configuration @EnableConfigurationProperties(value=EhCacheProperties.class) @ConditionalOnClass(value=net.sf.ehcache.CacheManager.class) @ConditionalOnMissingBean(value=org.springframework.cache.CacheManager.class) @ConditionalOnProperty(name="type", prefix="spring.cache", havingValue="ehcache") public class EhCacheAutoConfiguration extends Object implements CacheAutoConfiguration
| 构造器和说明 |
|---|
EhCacheAutoConfiguration(EhCacheProperties ehCacheProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
AgileEhCacheCacheManager |
agileCacheManager()
提供Agile的缓存管理器
|
net.sf.ehcache.config.Configuration |
configuration() |
net.sf.ehcache.CacheManager |
ehCacheCacheManager() |
public EhCacheAutoConfiguration(EhCacheProperties ehCacheProperties)
@Bean public AgileEhCacheCacheManager agileCacheManager()
CacheAutoConfigurationagileCacheManager 在接口中 CacheAutoConfiguration@Bean @ConditionalOnMissingBean(value=net.sf.ehcache.CacheManager.class) public net.sf.ehcache.CacheManager ehCacheCacheManager()
public net.sf.ehcache.config.Configuration configuration()
Copyright © 2021. All rights reserved.