Error starting ApplicationContext. To display the conditions report re-run your application with ‘de

Spring Boot项目启动时报错 APPLICATION FAILED TO START

问题描述:Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.

Description:
An attempt was made to call the method org.apache.tomcat.util.res.StringManager.getManager(Ljava/lang/Class;)Lorg/apache/tomcat/util/res/StringManager; but it does not exist. Its class, org.apache.tomcat.util.res.StringManager, is available from the following locations:

jar:file:/D:/learningsoftware/Java/mvn_resp/org/apache/tomcat/tomcat-util/7.0.47/tomcat-util-7.0.47.jar!/org/apache/tomcat/util/res/StringManager.class
jar:file:/D:/learningsoftware/Java/mvn_resp/org/apache/tomcat/embed/tomcat-embed-core/9.0.12/tomcat-embed-core-9.0.12.jar!/org/apache/tomcat/util/res/StringManager.class
问题查找

通过Maven的搜索准确的找到了,冲突问题的所在地方。。。
在这里插入图片描述

问题解决

可以删除不需要的依赖(前提备份好哦,以防出错),我是直接将pom文件中的tomcat-jasper依赖从7.0.47直接改成9.0.12然后就可以成功运行啦啦啦啦。。
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值