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