码迷,mamicode.com
首页 > 系统相关 > 详细

No cache could be resolved for……. At least one cache should be provided per cache operation

时间:2020-05-25 00:27:12      阅读:315      评论:0      收藏:0      [点我收藏+]

标签:uil   imp   ESS   VID   syn   integer   HERE   one   ati   

报错: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个小时。

No cache could be resolved for……. At least one cache should be provided per cache operation

标签:uil   imp   ESS   VID   syn   integer   HERE   one   ati   

原文地址:https://www.cnblogs.com/woyujiezhen/p/12953533.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!