关闭Tomcat的TLD扫描功能

  1. 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就可以了。

原文地址:https://www.cnblogs.com/nicori/p/5613626.html