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時是不需要的


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM