SpringCacheBasedUserCache is null
问题 I have web applicatoin who use spring boot, spring security and spring data. it is stateless. I would like to avoid to alway call db for user acess. So i thinking using SpringCacheBasedUserCache. @Configuration @EnableCaching public class CacheConfig { @Bean CacheManager cacheManager() { SimpleCacheManager cacheManager = new SimpleCacheManager(); cacheManager.setCaches(Arrays.asList(new ConcurrentMapCache("city"), new ConcurrentMapCache("userCache"))); return cacheManager; } @Bean public