@Component @DependsOn(value="katool-cache") public class CacheUtilsConfig extends Object
| 构造器和说明 |
|---|
CacheUtilsConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
CaffeineUtils |
getCaffeineCache() |
EhCacheUtils |
getEhCache() |
@Bean(value="CaffeineUtils")
@DependsOn(value="katool-cache")
@ConditionalOnMissingBean(value={CaffeineUtils.class,CachePolicy.class})
public CaffeineUtils getCaffeineCache()
@Bean(value="EhCacheUtils")
@DependsOn(value="katool-cache")
@ConditionalOnMissingBean(value={EhCacheUtils.class,CachePolicy.class})
public EhCacheUtils getEhCache()
Copyright © 2024. All rights reserved.