org.springframework.beans.factory.BeanDefinitionStoreException:
IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml];
nested exception is java.io.FileNotFoundException:
Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
但是applicationContext.xml是在我的src路径下,而不是/WEB-INF下,是其他问题引起的吗?
------解决方案--------------------
spring默认回去WEB-INF下去找,你在web.xml中配置:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext*.xml</param-value>
</context-param>
就可以了。