Spring中的事务怎么去实现,给段代码和注释?
展开全部
<bean id="tactionserviceproxy" parent="baseServiceProxy">
<property name="target">
<ref bean="sqlservice" />
</property>
<property name="transactionAttributes">
<props>
<prop key="insert*">
PROPAGATION_REQUIRED,InfoObjectException
</prop>
<prop key="delete*">
PROPAGATION_REQUIRED,InfoObjectException
</prop>
<prop key="update*">
PROPAGATION_REQUIRED,InfoObjectException
</prop>
<prop key="find*">
PROPAGATION_REQUIRED,InfoObjectException
</prop>
</props>
</property>
</bean>
<property name="target">
<ref bean="sqlservice" />
</property>
<property name="transactionAttributes">
<props>
<prop key="insert*">
PROPAGATION_REQUIRED,InfoObjectException
</prop>
<prop key="delete*">
PROPAGATION_REQUIRED,InfoObjectException
</prop>
<prop key="update*">
PROPAGATION_REQUIRED,InfoObjectException
</prop>
<prop key="find*">
PROPAGATION_REQUIRED,InfoObjectException
</prop>
</props>
</property>
</bean>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询