<bean id="testBean" abstract="true" class="test.TestBean">
<property name="name" value="parent" />
<property name="age" value="1" />
</bean>
<bean id="derivedTestBean" class="test.DerivedTestBean" parent="testBean" init-method="initialize">
<property name="name" value="override" />
</bean>
Bean的继承parent
最新推荐文章于 2017-02-28 20:27:28 发布