以前項目中經常用spring
首先
<bean id=
<property name=
<ref local=
</property>
</bean>
然後
<bean id=
<property name=
<ref bean=
</property>
<property name=
<props>
<prop key=
<prop key=
<prop key=
<prop key=
<prop key=
</props>
</property>
</bean>
這個模板怎樣應用到業務方法上呢?請看下面的配置
<!
<bean id=
<property name=
<ref bean=
</property>
</bean>
<!
<bean id=
<property name=
<bean class=
<property name=
<ref bean=
</property>
</bean>
</property>
</bean>
注釋部分是原來沒有配置事務的service
From:http://tw.wingwit.com/Article/program/Java/ky/201311/28604.html