Error creating bean with name ‘org.springframework.cache.interceptor.CacheInterceptor#0’

.Error creating bean with name 'org.springframework.cache.interceptor.CacheInterceptor#0’
原因:
spring配置文件添加注解扫描<mvc:annotation-driven />之后,idea会自动给你添加引用,但是它添加的引用是xmlns:mvc=”http://www.springframework.org/schema/cache”,这就导致了问题。

解决方法:

应该把xmlns:mvc=”http://www.springframework.org/schema/cache”改成xmlns:mvc=”http://www.springframework.org/schema/mvc”

猜你喜欢

转载自blog.csdn.net/crraxx/article/details/122790272