这是我的场景:
public BaseJPARepository implements BaseRepository{}
public AuthorizationsJPARepository extends BaseJPARepository implements AuthorizationsRepository{]
public ClearingJPARepository extends BaseJPARepository implements ClearingRepository{}
我想将BaseJPARepository
.
CDI 抛出Multiple ambiguous
dependencies found -> BaseJPARepository,AuthorizationsJPARepository and ClearingJPARepository
. 很公平,但我需要解决它,因为在很多情况下我可能只使用我的BaseFacade
+ 。BaseRepository
@Inject
BaseRepository baseRepository