您的位置:首页 > 大数据 > 人工智能

Error creating bean with name 'JPAToolDAO': Injection of persistence methods failed; nested exceptio

2016-07-04 11:37 585 查看
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 就可以。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: