【问题标题】:Multiple field with identical name in Spring [duplicate]Spring中具有相同名称的多个字段[重复]
【发布时间】: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


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-09-30
      • 1970-01-01
      • 1970-01-01
      • 2017-03-03
      • 1970-01-01
      • 1970-01-01
      • 2017-04-08
      相关资源
      最近更新 更多