</property>
<property name="orderDAO">
<ref bean="orderdao"/>
</property>
</bean>
<!--此处注入上面配置好的Target的ProxyFactoryBean-->
<bean id="transationBO" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager">
<ref bean="transactionManager" />
</property>
<property name="target">
<ref local="itemBOTarget" />
</property>
<property name="transactionAttributes">
<props>
<!--事务传播设置通常在一个事务中执行的所有代码都会在这个事务中运行-->
<prop key="insert*">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>
|