in org.springframework.cache.annotation.ProxyCachingConfiguration required a bean of type 'org.springframework.cache.interceptor.CacheOperationSource' that could not be found

我的项目是springboot项目,在启动过程中报错如何下

1
2
3
Parameter 0 of method cacheAdvisor in org.springframework.cache.annotation.ProxyCachingConfiguration
required a bean of type 'org.springframework.cache.interceptor.CacheOperationSource'
that could not be found

  这个可以理解为缓存得到问题,标记了缓存,但是没有实际实例化的地方和使用的位置

我的启动是用了@EnableCaching,但是对应配套的注解,@Cacheable,@CachePut,@CacheEvict没有对应的搭配使用,因为

我去了解了项目,其实没用到这个缓存技术的,所以我去掉了@EnableCaching

 

posted @   不忘初心2021  阅读(71)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
点击右上角即可分享
微信分享提示