ASM ClassReader failed to parse class file
前言
維護很久以前的項目時,出現這個問題:ASM ClassReader failed to parse class file
分析
經過網上搜索該問題,發現是spring版本引起的。
Note that the Java 8 bytecode level (-target 1.8, as required by -source 1.8) is only fully supported as of Spring Framework 4.0. In particular, Spring 3.2 based applications need to be compiled with a maximum of Java 7 as the target, even if they happen to be deployed onto a Java 8 runtime. Please upgrade to Spring 4 for Java 8 based applications.
出問題的項目中使用的 spring 版本為3.2.8,jdk使用了java8。
解決辦法
該問題的解決辦法方案有兩條:
 a. 使用jdk7
 b. 升級spring 4
參考
https://blog.csdn.net/blueheart20/article/details/50150529
 https://stackoverflow.com/questions/22526695/java-1-8-asm-classreader-failed-to-parse-class-file-probably-due-to-a-new-java
 https://stackoverflow.com/questions/36820068/asm-classreader-failed-to-parse-class-file-probably-due-to-a-new-java-class-fi
總結
以上是生活随笔為你收集整理的ASM ClassReader failed to parse class file的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: 【maven】dependency的sy
- 下一篇: 小米智能门锁2开售来袭!三大升级 到手价
