Could not open ServletContext resource [/WEB-INF/springmvc-servlet.xml]

来源:互联网 发布:张艺兴而立24淘宝 编辑:程序博客网 时间:2024/05/17 07:52

搭建spring项目的时候报这个错:
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/springmvc-servlet.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/springmvc-servlet.xml]

这里写图片描述

原因是web.xml和applicationContext.xml两个文件没放在一起:
这里写图片描述

解决办法:
这里写图片描述

0 0
原创粉丝点击