Name Clash even though I'm not using both interfaces

纵饮孤独 提交于 2019-12-12 05:11:25

问题


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:


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>


来源:https://stackoverflow.com/questions/30459151/name-clash-even-though-im-not-using-both-interfaces

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!