弹簧数据依赖关系错误

问题描述:

我有以下错误:“java:name clash:保存在JpaRepository中并保存在CrudRepository中具有相同的擦除,但两者都不会覆盖另一个。弹簧数据依赖关系错误

我使用的IntelliJ IDEA与依赖关系:

休眠5.2.9-5.2.9

春数据JPA-1.3.3

弹簧4.3.8.RELEASE

我正在使用:

@Repository 
public interface PropietarioRepository extends JpaRepository<E, K>{} 

作为数据访问层。

4.3.8-release是Spring的最新稳定版本。 1.3.3是4年前发布的2013年版本。它的pom表示它依赖于spring 3.1.4.RELEASE。

使用最新版本的spring-data-jpa,它与Spring 4.3.8兼容。

与弹簧4.3.8兼容的最新稳定版本是1.11.3:http://docs.spring.io/spring-data/jpa/docs/1.11.3.RELEASE/reference/html/#dependencies.spring-framework