<bean id="base" class>
....//基类bean
</bean>
<bean id="..." parent="">
//这里可以有属性的覆盖
如果一个bean只是作为模板使用需要在bean中添加一个abstract属性并将其定义为true