欢迎大家关注我的公众号,有问题可以及时和我交流。
一个很奇怪的问题,就是项目在本地没有问题,但是到生产机器上就报错:
Caused by: java.lang.IllegalStateException: Unable to complete the scan for annotations for web application [] due to a StackOverflowError. Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
提示的问题是栈溢出问题。
尝试
反复启动tomcat,偶尔有一次能启动。
解决办法:
查看maven打包后的项目依赖(有重复的jar依赖循环问题) 。