私は次のものを持っています:
public class ClaimFacadeImpl implements ClaimFacade {
@Autowired
private DebtRepository<Claim> debtRepository;
@Autowired
private DebtRepository<Fine> fineRepository;
//other stuff
}
public interface DebtRepository <T extends Debt> {
//nothing special
}
public class DebtRepositoryImpl <T extends Debt> implements DebtRepository <T> {
//nothing special
}
そして2クラス。1 件の請求と 1 件の罰金の両方が債務を延長します。エラーが発生しますMore than one field with type interface domain.debt.DebtRepository
私は何をすべきか?