在使用Interiij idea创建SpringMVC项目时,出现No bean named ‘cacheManager’ is defined错误,是因为在使用tx命名空间造成的,idea默认会引入cache到XML文档解析中,只需要将catch改成mvc即可

image.png

image.png
在使用Interiij idea创建SpringMVC项目时,出现No bean named ‘cacheManager’ is defined错误,是因为在使用tx命名空间造成的,idea默认会引入cache到XML文档解析中,只需要将catch改成mvc即可