Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'异常解决方案

新建SpringMVC项目使用注解开发报错

 

 

 

 

分析原因

 

因为 <mvc:annotation-driven> 有同名的。

解决方法:

删除,xmlns:mvc="http://www.springframework.org/schema/cache有关的

添加红色框内地址

 

posted @ 2020-08-07 10:42  漫步花海下的oldman  阅读(672)  评论(0编辑  收藏  举报