Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'异常解决方案
新建SpringMVC项目使用注解开发报错

分析原因

因为 <mvc:annotation-driven> 有同名的。
解决方法:
删除,xmlns:mvc="http://www.springframework.org/schema/cache有关的
添加红色框内地址

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


因为 <mvc:annotation-driven> 有同名的。
解决方法:
删除,xmlns:mvc="http://www.springframework.org/schema/cache有关的
添加红色框内地址
