Spring3.2和jdk1.8之间的兼容性错误

时间:2022-08-21 15:18:24

链接:http://blog.csdn.net/mj_ww/article/details/53215284

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.IllegalArgumentException
    at org.springframework.asm.ClassReader.<init>(Unknown Source)
    at org.springframework.asm.ClassReader.<init>(Unknown Source)
    at org.springframework.asm.ClassReader.<init>(Unknown Source)

解决:

        问题原因:Java 8 with spring 3.2.0, which doesn’t support it. 
       解决方法:使用spring4或者使用jdk7.