Name Clash even though I'm not using both inte

2019-09-07 20:21发布

I'm getting this annoying message :

Error:(8, 8) java: name clash: save(java.lang.Iterable) in org.springframework.data.repository.CrudRepository and save(java.lang.Iterable) in org.springframework.data.jpa.repository.JpaRepository have the same erasure, yet neither overrides the other

I'm not using CrudRepository in my code, so how come im getting this weird message? How can I fix it?

1条回答
你好瞎i
2楼-- · 2019-09-07 21:20

Its a dependency issue. The following dependency resolves the issue

  <dependency>
        <groupId>org.springframework.data</groupId>
        <artifactId>spring-data-commons-core</artifactId>
        <version>**1.2.1.RELEASE**</version>
  </dependency>
查看更多
登录 后发表回答