问题描述
Tomcat启动提示At least one JAR was scanned for TLDs yet contained no TLDs
tomcat启动速度总是很慢,检查后发现tomcat启动时总是卡在这个地方
经查阅得知Tomcat在启动过程中加载众多jar文件,默认会对其做 TLDs 扫描,{CATALINA-HOME}/logs/catalina.xxxx-xx-xx.log文件中会出现大量下面的 log:
修改配置
1.打开tomcat安装目录/conf/catalina.properties
2.找到代码tomcat.util.scan.StandardJarScanFilter.jarsToScan=\
3.这行代码下面的jar包的都是需要扫描的,这也是导致tomcat启动过慢的元凶,所以删除下面的jar包即可
4.将tomcat.util.scan.StandardJarScanFilter.jarsToScan=\
修改为tomcat.util.scan.StandardJarScanFilter.jarsToSkip=*.jar
5.修改完之后保存回到eclipse删除以前的tomcat配置,并重新配置
重新启动tomcat
</div>
<link href="https://csdnimg.cn/release/phoenix/mdeditor/markdown_views-e44c3c0e64.css" rel="stylesheet">
</div>
</article>