【发布时间】:2015-01-02 20:21:06
【问题描述】:
我有以下内容:
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 个班级。一项索赔和一项罚款都延长了债务。
我收到错误More than one field with type interface domain.debt.DebtRepository
我该怎么办?
【问题讨论】:
标签: java spring autowired entity-bean