nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/

来源:互联网 发布:网络配线架英文缩写 编辑:程序博客网 时间:2024/04/28 04:48
14:21:50,359  INFO [localhost-startStop-1] ContextLoader:305 - Root WebApplicationContext: initialization started
14:21:50,644  INFO [localhost-startStop-1] XmlWebApplicationContext:581 - Refreshing Root WebApplicationContext: startup date [Fri Apr 07 14:21:50 CST 2017]; root of context hierarchy
14:21:50,748  INFO [localhost-startStop-1] XmlBeanDefinitionReader:317 - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
14:21:50,753 ERROR [localhost-startStop-1] ContextLoader:351 - Context initialization failed

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]



在web.xml中加上

   <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext*.xml</param-value>
</context-param>

0 0
原创粉丝点击