ssm项目启动时,显示找不到applicationContext.xml文件,位置 [/WEB-INF/applicationContext.xml];
错误原因:
web.xml 文件中,contextConfigLocation打错了…23333
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring/applicationContext*.xml</param-value>
</context-param>
…
错误代码 主要信息:
三段:
Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
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]
[WARN] Exception thrown from LifecycleProcessor on context close [localhost-startStop-1] org.springframework.web.context.support.XmlWebApplicationContext [org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:880)]
java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Fri Mar 15 18:36:01 CST 2019]; root of context hierarchy
版权声明:本文为qq_43349566原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。