org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/dispatcher-servlet.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/dispatcher-servlet.xml]
Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/dispatcher-servlet.xml]
如果修改了idea默认的springMVC的配置文件,则会出现此错误,如果自己重新设置配置文件的位置,很有可能弄错了param-name,如下:
![](https://images2015.cnblogs.com/blog/759417/201604/759417-20160401100939707-1319385054.png)
取值有:应该用contextConfigLocation
![](https://images2015.cnblogs.com/blog/759417/201604/759417-20160401100940316-1046109665.png)