Spring 注解 遇到的问题 ASM ClassReader failed to parse class file - probably due to a new Java class file

下降jdk的版本  将jdk1.8-->jdk1.7java

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [E:\java workspace\myeclipse2017\spring01\bin\cn\itcast\e_anno\App.class]; nested exception is org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet: file [E:\java workspace\myeclipse2017\spring01\bin\cn\itcast\e_anno\App.class]; nested exception is java.lang.IllegalArgumentException
    at 
 spring

在项目上右键 --> Properties --> Java Compile --> Compiler compliance level :eclipse

如图:spa

    

相关文章
相关标签/搜索