搭建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两个文件没放在一起: 
解决办法: 
本文解决了一个常见的Spring项目配置错误:在搭建Spring项目时遇到的org.springframework.beans.factory.BeanDefinitionStoreException异常,该异常提示无法找到/WEB-INF/springmvc-servlet.xml文件。问题的原因在于web.xml和applicationContext.xml两个配置文件没有放置在同一目录下。
3329

被折叠的 条评论
为什么被折叠?



