ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet

严重: Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [/home/rocky/Develop/luna_workspace/20160603workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/app12a/WEB-INF/classes/app12a/controller/ImageController.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 [/home/rocky/Develop/luna_workspace/20160603workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/app12a/WEB-INF/classes/app12a/controller/ImageController.class]; nested exception is java.lang.IllegalArgumentException
--伟大而美丽-------------------------------------------------------------------------------------------------------------------------------------------------

这个项目用的是spring3.x,我的java版本是1.8,这个提示的意思是spring不支持这个版本的java,解决办法有两个,1.buildpath配置spring3.x支持的低版本的jre,2.讲Spring的jar包替换为更高版本的,我选择的是后者,选择后者时可能需要的jar包更多一些,比如在替换为Spring4.0.x时就必须加入AOP这个包,但是在Spring3时是不需要的

posted @ 2016-06-10 23:33  牵牛花  阅读(2517)  评论(0编辑  收藏  举报