我这样写会报错
default-autowire="constructor"> <bean id ="man" class="org.interfaces.impl.Man"></bean> <bean id="apple" class="org.interfaces.impl.Orange" ></bean>
No constructor with 0 arguments defined in class 'org.interfaces.impl.Man'
default-autowire="constructor"> <bean id ="man" class="org.interfaces.impl.Man"></bean> <bean id="apple" class="org.interfaces.impl.Orange" ></bean>
No constructor with 0 arguments defined in class 'org.interfaces.impl.Man'
2018-09-30
举报