当启动应用程序或通过 ant 编译 JSP 时,Tomcat 7 Jasper 抱怨 JAR 文件多余或放错位置。我收到以下消息
**compile-jsp:**
[jasper] Jul 31, 2012 7:15:15 PM org.apache.jasper.compiler.TldLocationsCache tldScanJar
[jasper] INFO: 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.
如何在扫描过程中跳过不需要的 JAR 可以缩短 tomcat 中的启动时间和 JSP 编译时间?
如何实现更好的输出?
雄猫8.5。在catalina.properties里面,位于/conf目录下设置:
tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\*.jar
或者进入 Tomcat 的 /conf 目录中的 context.xml 并添加:
<JarScanner scanClassPath="false"/>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)