关闭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就可以了。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM