<分区>
我有以下内容:
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 个类。一项 claim 和一项罚款均延长了债务。
我收到错误 More than one field with type interface domain.debt.DebtRepository
我该怎么办?