ssm错误总结;ssm项目启动时,,显示找不到applicationContext.xml文件,位置 [/WEB-INF/applicationContext.xml];

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值