<bean class="Test.Person" id="person01">
<!-- 引用外部的car -->
<property name="myCar" ref="car"></property>
<!-- 级联属性赋值,更改了车的名字,也会改变外部名字 -->
<property name="myCar.carName" value="奔驰"></property>
</bean>
<bean class="Test.Person" id="person02" parent="person01">
<!-- 配置信息继承自其parent,也就是person01,如果需要更改,在用property赋值即可 -->
<property name="name" value="张三"></property>

</bean>