标签:
搭SSH框架时经常会有如下配置,每次都是直接copy过来,却一直没深究过里面写了啥。
<bean id="txProxyTemplate_blog" abstract="true"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager" ref ="transactionManager_blog" />
<property name="transactionAttributes">
<props>
<prop key="get*">REQUIRED</prop>
<prop key="find*" >PROPAGATION_REQUIRED,</prop>
<prop key="load*">PROPAGATION_REQUIRED</prop>
<prop key="save*">PROPAGATION_REQUIRED,AUTO</prop>
<prop key="add*">PROPAGATION_REQUIRED</prop>
<prop key="update*">PROPAGATION_REQUIRED</prop>
<prop key="delete*">PROPAGATION_REQUIRED</prop>
<prop key="*">PROPAGATION_REQUIRED,readOnly</prop>
</props>
</property>
</bean>
标签:
原文地址:http://www.cnblogs.com/bishion/p/4925843.html