解決辦法:
在tomcat的conf/catalina.properties 文件中排除對上述jar包的掃描。
具體操作:
1.打開在conf/catalina.properties文件
2.在tomcat.util.scan.StandardJarScanFilter.jarsToSkip 末尾增加:
bcpkix-*.jar,bcprov-*.jar,fr-*.jar
tomcat啟動慢,堆棧報錯(大概率因為要掃描jar里的servlet3.0注解):
操作:在conf/ catalina.properties
文件中tomcat.util.scan.StandardJarScanFilter.jarsToSkip
末尾增加不需要掃描的jar來提速,如:
spring-amqp-*.jar,\
spring-aop-*.jar,\文章來源:http://www.zghlxwxcb.cn/news/detail-799877.html
spring-aop-*.jar,\
spring-beans-*.jar,\文章來源地址http://www.zghlxwxcb.cn/news/detail-799877.html
到了這里,關于由于StackOverflower錯誤,無法完成對web應用程序[/XX]的批注的掃描。tomcat啟動報錯的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!