工具类中使用了同名方法,但参数类型和引用的包不一样,分别如下: S org.springframework.data.repository.CrudRepository.save(S entity) List org.springframework.data.jpa.repository.JpaRepository.save(Iterable entities)
MyEclipse和idea能去掉这个问题,就eclipse怎么也去不了,网上很多人都说
在eclipse.ini -vmargs后面添加 -DtolerateIllegalAmbiguousVarargsInvocation=true ;重启eclipse,并clean一下项目 重新编译即可
只能不影响编译,在真正使用到这个方法时还是会报错
eclipse :The method save(Iterable<T>) is ambiguous for the type BaseDao<T>
- 写回答
- 好问题 提建议
- 追加酬金
- 关注问题
- 分享
- 邀请回答