setter注入
<bean id="" class="">
<property name="" ref=""/>
</bean>
construct注入(不常用)
<bean id="" class="">
<constructor-arg index="0">
<bean class=""/>
</constructor>
<constructor-arg index="1">
<bean class=""/>
</constructor-arg>
</bean>
如果XML不给提示在 Eclipse preference中xml catalog 配上key,和相应的xsd文件,xsd在spring/dist/resources中