Spring常用事务配置方式
2014-11-10 16:10
183 查看
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="get*" propagation="SUPPORTS" read-only="true" isolation="DEFAULT"/>
<tx:method name="query*" propagation="SUPPORTS" read-only="true" isolation="DEFAULT"/>
<tx:method name="find*" propagation="SUPPORTS" read-only="true" isolation="DEFAULT"/>
<tx:method name="load*" propagation="SUPPORTS" read-only="true" isolation="DEFAULT"/>
<tx:method name="search*" propagation="SUPPORTS" read-only="true" isolation="DEFAULT"/>
<tx:method name="cu*" propagation="SUPPORTS" read-only="true" isolation="DEFAULT"/>
<tx:method name="*Token*" propagation="NOT_SUPPORTED" read-only="true"/>
<tx:method name="*" propagation="REQUIRED" isolation="DEFAULT" />
</tx:attributes>
</tx:advice>
<aop:config>
<aop:pointcut id="resourcePointcut"
expression="execution(* com.hikvision.ivms6.cms.module.resource.service.impl.*.*(..))" />
<aop:advisor advice-ref="txAdvice" pointcut-ref="resourcePointcut" />
</aop:config>
<tx:attributes>
<tx:method name="get*" propagation="SUPPORTS" read-only="true" isolation="DEFAULT"/>
<tx:method name="query*" propagation="SUPPORTS" read-only="true" isolation="DEFAULT"/>
<tx:method name="find*" propagation="SUPPORTS" read-only="true" isolation="DEFAULT"/>
<tx:method name="load*" propagation="SUPPORTS" read-only="true" isolation="DEFAULT"/>
<tx:method name="search*" propagation="SUPPORTS" read-only="true" isolation="DEFAULT"/>
<tx:method name="cu*" propagation="SUPPORTS" read-only="true" isolation="DEFAULT"/>
<tx:method name="*Token*" propagation="NOT_SUPPORTED" read-only="true"/>
<tx:method name="*" propagation="REQUIRED" isolation="DEFAULT" />
</tx:attributes>
</tx:advice>
<aop:config>
<aop:pointcut id="resourcePointcut"
expression="execution(* com.hikvision.ivms6.cms.module.resource.service.impl.*.*(..))" />
<aop:advisor advice-ref="txAdvice" pointcut-ref="resourcePointcut" />
</aop:config>
相关文章推荐
- spring 中常用的两种事务配置方式以及事务的传播性、隔离级别
- Spring 中常用的两种事务配置方式以及事务的传播性、隔离级别
- spring 中常用的两种事务配置方式以及事务的传播性、隔离级别
- spring 中常用的两种事务配置方式以及事务的传播性、隔离级别
- spring 中常用的两种事务配置方式以及事务的传播性、隔离级别
- spring 中常用的两种事务配置方式以及事务的传播性、隔离级别
- 事务有哪些特性?spring的事务管理有几种方式实现,如何实现?spring 中常用的两种事务配置方式以及事务的传播性、隔离级别
- spring 中常用的两种事务配置方式以及事务的传播性、隔离级别
- spring 中常用的两种事务配置方式以及事务的传播性、隔离级别
- spring 中常用的两种事务配置方式以及事务的传播性、隔离级别
- spring 中常用的两种事务配置方式以及事务的传播性、隔离级别
- Spring事务配置的五种方式
- Spring事务配置的五种方式
- Spring事务配置的五种方式(一)
- Spring事务配置的五种方式
- Spring事务配置的五种方式
- Spring事务配置的五种方式
- Spring事务配置的五种方式
- Spring事务配置的五种方式
- Spring事务配置的五种方式