关闭Tomcat的TLD扫描功能
Posted Ninon
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关闭Tomcat的TLD扫描功能相关的知识,希望对你有一定的参考价值。
-
Tomcat启动,显示“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”
这是因为Tomcat的TLD自动扫描功能,进入Tomcat目录下的conf/context
<?xml version=‘1.0‘ encoding=‘utf-8‘?> <Context processTlds="false"> <WatchedResource>WEB-INF/web.xml</WatchedResource> </Context>
把Context processTlds设为false就可以了。
以上是关于关闭Tomcat的TLD扫描功能的主要内容,如果未能解决你的问题,请参考以下文章
如何在 Tomcat 9.0.0M10 中修复“已扫描但未在其中找到 TLD 的 JAR”
Azure Tomcat application启动速度优化(20180704)
Caused by: java.lang.NoClassDefFoundError: org/apache/tomcat/util/descriptor/tld