@Bean public JCacheInterceptor jCacheInterceptor(JCacheOperationSource cacheOperationSource) { JCacheInterceptor cacheInterceptor = new TestCacheInterceptor(); cacheInterceptor.setCacheOperationSource(cacheOperationSource); return cacheInterceptor; } }