autwire via method param
This commit is contained in:
parent
b2a0a75389
commit
e7d85015e3
|
@ -58,9 +58,9 @@ public class CacheConfig {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public CacheInterceptor cacheInterceptor(CacheManager caffeineCacheManager) {
|
public CacheInterceptor cacheInterceptor(CacheManager caffeineCacheManager, CacheOperationSource cacheOperationSource) {
|
||||||
CacheInterceptor interceptor = new CustomerCacheInterceptor(caffeineCacheManager);
|
CacheInterceptor interceptor = new CustomerCacheInterceptor(caffeineCacheManager);
|
||||||
interceptor.setCacheOperationSources(cacheOperationSource());
|
interceptor.setCacheOperationSources(cacheOperationSource);
|
||||||
return interceptor;
|
return interceptor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue