报错:No cache could be resolved for 'Builder[public abstract com.example.cache.generate.Department com.example.cache.generate.DepartmentDao.selectByPrimaryKey(java.lang.Integer)] caches=[] | key='' | keyGenerator='' | cacheManager='' | cacheResolver='' | condition='' | unless='' | sync='false'' using resolver 'org.springframework.cache.interceptor.SimpleCacheResolver@4c504095'. At least one cache should be provided per cache operation.

本来@EnableCaching+@Cacheable(cacheNames={"xx"})就行了,结果……

我的天,我一直在实现类里面找错误,结果最后发现是我在接口写了一个@Cacheable忘记删除了。难受,浪费2个小时。

相关文章:

  • 2021-07-24
  • 2021-12-28
  • 2022-12-23
  • 2022-01-08
  • 2021-05-29
  • 2022-12-23
  • 2021-06-21
  • 2022-12-23
猜你喜欢
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
  • 2022-03-08
相关资源
相似解决方案