eclipse部署重启报错:
Error creating bean with name 'JPAToolDAO': Injection of persistence methods failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.haiyisoft.analysis.homepage.service.impl.AlHomePageServiceImpl] for bean with name 'alHomePageService' defined in file [D:\uepstudio\jboss-4.2.3.GA\server\default\deploy\jndsjypfx.war\WEB-INF\classes\com\haiyisoft\analysis\homepage\service\impl\AlHomePageServiceImpl.class]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: com/haiyisoft/analysis/homepage/service/impl/AlHomePageServiceImpl : Unsupported major.minor version 51.0
解决方案:
最后提示是 version 版本的问题,也就是说 jdk 1.6的程序,用的1.7编译的,所有更改一下jdk编译版本就行。
项目右键--->properties --->Java Compiler--->改成 1.6 就可以。