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

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中加上

   
        org.springframework.web.context.ContextLoaderListener
   


contextConfigLocation
/WEB-INF/applicationContext*.xml

你可能感兴趣的:(nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/)