今天运行SSM项目时出现找不到applicationContect.xml文件的情况,后来上网搜索资料,找到了解决办法

报错如下图:

遇到“class path resource [applicationContect.xml] cannot be opened because it does not exist”怎么办?

默认的位置应该在/WEB-INF下;如果不是在这个路径下,那你的web.xml中要配置下,如下:

遇到“class path resource [applicationContect.xml] cannot be opened because it does not exist”怎么办?

相关文章: