tomcat启动报错:
Caused by: java.lang.IllegalStateException: Unable to complete the scan for annotations for web application [/ygz] due to a StackOverflowError. Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies. The class hierarchy being processed was [org.bouncycastle.asn1.ASN1Boolean->org.bouncycastle.asn1.DERBoolean->org.bouncycastle.asn1.ASN1Boolean]
在网上搜索了一下,很多说是修改catalina.bat的配置文件,但是修改完之后这个问题还是依旧存在,项目启动像是随缘。还修改了web.xml,不要扫描jar包
这个问题的根本原因是jar包冲突,继承关系刚好相反,故造成tomcat启动的循环依赖问题,导致堆栈溢出。所以应该考虑的是如何解决jar依赖问题。
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk16</artifactId>
说白哦,就是lib下面jar重复。仔细观察