SpringBoot项目部署到外部Tomcat,入口类不加载的问题解决过程

某一天,突然发现正在开发的Web项目无法访问了。看log,发现入口类不加载了。而Tomcat是正常启动的。

有这么一段提示:

org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.……

随之网上找了各种办法,逐一尝试均告失败……

折腾了一整天,整个人快要崩溃了。

随即通过git查看近期所有代码修改的差异,终于发现是前一天脑袋一热,pom中多加了这么一段依赖:             

<dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-web</artifactId>
    <scope>runtime</scope>
</dependency>

删除之,再次启动tomcat,泪奔啊。终于OK了!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值