QA:Initialization of bean failed; nested exception is java.lang.AbstractMethodError
Posted on 2018-07-20 15:58 冰碟 阅读(4460) 评论(0) 编辑 收藏 举报Q:
<hibernate.version>5.2.10.Final</hibernate.version><dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-jpa</artifactId> <version>2.0.2.RELEASE</version> </dependency>
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao': Initialization of bean failed; nested exception is java.lang.AbstractMethodError
A:
原因
- 直接原因:不能实例化bean。
- 间接原因:版本冲突
解决
降低 spring-data-jpa 的版本
<version>1.11.9.RELEASE</version>