慕斯卡4256787
2017-07-09 10:48
private InjectionServiceImpl(InjectionDAO injectionDAO1)
<bean id="injectionService" class="com.imooc.ioc.injection.service.InjectionServiceImpl">
<constructor-arg name="injectionDAO" ref="injectionDAO"></constructor-arg>
</bean>
constructor-arg name属性一致,你的是injectionDAO1,那对应的就是
<constructor-arg name="injectionDAO1" ref="injectionDAO"></constructor-arg>
Spring入门篇
268785 学习 · 963 问题
相似问题