tomcat启动出现 org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors错误


版权声明:本文为博主原创文章,未经博主允许不得转载。

今天在学习简单的spring框架的时候,在web项目中引入了基本的jar包以及配置,使用tomcat启用的使用报
org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors错误,如下图:
在这里插入图片描述

原因:经检查发现web.xml配置的spring的classpath配置路径不对

原来配置中:

configLocation
classpath:springstudy.myspring4.webdemo.beans.xml

中的classpath应该改成
classpath:springstudy/myspring4/webdemo/beans.xml
否则的话使用tomcat启用加载web.xml的时候就会出现上述错误。

Logo

一站式虚拟内容创作平台,激发创意,赋能创作,进入R空间,遇见同道,让优质作品闪耀发光。​

更多推荐