@Configuration @ConditionalOnClass(value=org.springframework.cache.CacheManager.class) public class CacheAutoConfiguration extends Object
| Constructor and Description |
|---|
CacheAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkConfig()
配置检查
|
org.springframework.cache.interceptor.KeyGenerator |
simpleKeyGenerator()
注入名为simpleKeyGenerator的缓存key生成器
|
@Bean(value="simpleKeyGenerator") @ConditionalOnMissingBean(name="simpleKeyGenerator") public org.springframework.cache.interceptor.KeyGenerator simpleKeyGenerator()
@PostConstruct public void checkConfig()
Copyright © 2021. All rights reserved.