项目之前一直好好的,突然运行报:
at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:305) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE] ... 12 common frames omitted Caused by: java.lang.ClassFormatError: Truncated class file
各种排查后,发现同样的代码就我本地启动有问题 发到线上是好的,经过报的错误提示分析,可能是我本地文件被损坏,果然在我删除掉报错jar之后重新拉取就能正常启动了