@Bean public CacheInterceptor cacheInterceptor(CacheOperationSource cacheOperationSource) { CacheInterceptor cacheInterceptor = new TestCacheInterceptor(); cacheInterceptor.setCacheManager(cacheManager()); cacheInterceptor.setCacheOperationSources(cacheOperationSource); return cacheInterceptor; } }