简体   繁体   English

即使我没有同时使用两个接口,名称也会发生冲突

[英]Name Clash even though I'm not using both interfaces

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 错误:(8,8)java:名称冲突:org.springframework.data.repository.CrudRepository中的save(java.lang.Iterable)和org.springframework.data.jpa.repository中的save(java.lang.Iterable)。 JpaRepository具有相同的擦除,但是没有一个覆盖另一个

I'm not using CrudRepository in my code, so how come im getting this weird message? 我没有在代码中使用CrudRepository ,所以怎么会收到这个奇怪的消息呢? How can I fix it? 我该如何解决?

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>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 QueryDsl 额外查询,即使我使用的是连接 - QueryDsl extra query, even though I'm using a join 我正在尝试为一个正整数循环,但是即使我正在使用try-catch,我也在main方法中不断获取异常 - I'm trying to loop for a positive integer, but I keep getting exceptions in the main method even though I'm using a try-catch 为什么即使我使用dialog.dispose(),Java也不能正常关闭? - Why can't Java close properly even though I'm using dialog.dispose()? 线程执行太多次并导致竞争条件,即使我正在使用锁 - Thread executes too many times and causes race condition even though I'm using locks 即使我在Eclipse中使用jre8,也无法使用java.util.regex.Pattern - Can't use java.util.regex.Pattern even though I'm using jre8 in eclipse 即使我使用正确的尺寸(hdpi,mdpi,xxhdpi ...),选项卡上的图像图标也会显得非常小 - Image icon on tabs appear very small even though I'm using the correct dimensions (hdpi, mdpi, xxhdpi …) 名称冲突,覆盖失败,在实现具有相同擦除的两个接口的类上 - Name Clash, override fail, on a class implementing two interfaces with same erasure 即使我正在调用 thread.interrupt(),线程也不会中断 - Thread not interrupting even though I'm calling thread.interrupt() ClassDefNoFound 即使我依赖的罐子在我的罐子里 - ClassDefNoFound even though the jar that I'm dependent on is in my jar 即使我正在处理另一个,UI线程也会卡住 - UI Thread gets stuck even though I'm working on another
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM