@Configuration @RemoteApplicationEventScan(basePackageClasses=CacheInvalidateEvent.class) @AutoConfigureBefore(value=org.springframework.boot.autoconfigure.AutoConfigurationPackage.class) public class CacheAutoConfiguration extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private org.springframework.cloud.bus.BusProperties |
busProperties |
private CacheService |
cacheService |
private org.springframework.context.ApplicationEventPublisher |
eventPublisher |
private String |
serverName |
private org.springframework.cloud.bus.ServiceMatcher |
serviceMatcher |
| 构造器和说明 |
|---|
CacheAutoConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
CacheService |
cacheService() |
void |
onCacheRefreshEvent(CacheInvalidateEvent event) |
@Autowired private org.springframework.context.ApplicationEventPublisher eventPublisher
@Autowired private org.springframework.cloud.bus.BusProperties busProperties
@Value(value="${spring.application.name:application}")
private String serverName
@Autowired private org.springframework.cloud.bus.ServiceMatcher serviceMatcher
@Autowired private CacheService cacheService
@EventListener public void onCacheRefreshEvent(CacheInvalidateEvent event)
@Bean @ConditionalOnMissingBean public CacheService cacheService()
Copyright © 2021. All rights reserved.