私は豆を持っています:
<bean id="BasketLogic" class="efco.logic.EfcoBasketLogic" autowire="byType">
<property name="documentLogic" ref="DocumentLogic" />
<property name="stateAccess" ref="StateAccess" />
<property name="contextAccess" ref="ContextAccess" />
</bean>
<bean id="EfcoErpService" autowire="byType" class="efco.erp.service.EfcoErpServiceImpl">
<constructor-arg ref="ErpConnector"/>
</bean>
documentLogic、stateAccess、contextAccessは BasketLogicImpl のフィールドです
そして、私は持っていません<context:component-scan />
EfcoBasketLogic.java:
public class EfcoBasketLogic extends BasketLogicImpl {
@Inject
private EfcoErpService erpService;
...
...
...
}
セッターを提供しない限り、erpService はnullです。しかし、なぜ?自動配線が行われている場所ではセッターは必要ないと思いましたか? BasketLogicImpl がそれを担当している可能性がありますか?