Spring 数据依赖关系错误



我有以下错误:"java:name clash:save in JpaRepository 和保存在 CrudRepository 中具有相同的擦除,但两者都不会覆盖另一个。

我正在使用带有依赖项的Intellij IDEA:

休眠 5.2.9-5.2.9

春季数据 JPA-1.3.3

春季-4.3.8.发布

我正在使用:

@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 兼容。

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

最新更新