待读XML:
<Spring>
<beans>
<bean id="stu" class="Bean.Student">
<property name="id" value="11203080310">
</property>
<property name="name" value="胡攀">
</property>
</bean>
<bean id="tec" class="Bean.Teacher">
<property name="id" value="0000002">
</property>
<property name="name" value="涂飞">
</property>
<property name="level" value="教授">
</property>
</bean>
<bean id="ps" class="Bean.PersonSpeaker">
<property name="person">
<ref bean="stu"/>
</property>
</bean>
</beans>
</Spring>