spring事务
来源:互联网 发布:windows ntp服务器配置 编辑:程序博客网 时间:2024/06/08 03:03
<!-- 事务相关配置 -->
<tx:advice id="txdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="delete*" propagation="REQUIRED" read-only="false"
rollback-for="java.lang.Exception" no-rollback-for="java.lang.RuntimeException"/>
<tx:method name="insert*" propagation="REQUIRED" read-only="false"
rollback-for="java.lang.RuntimeException" />
<tx:method name="update*" propagation="REQUIRED" read-only="false"
rollback-for="java.lang.Exception" />
<tx:method name="find*" propagation="SUPPORTS"/>
<tx:method name="get*" propagation="SUPPORTS"/>
<tx:method name="select*" propagation="SUPPORTS"/>
</tx:attributes>
</tx:advice>
<aop:config>
<aop:pointcut id="pc" expression="execution(public * org.ssm.services.impl.*.*(..))" /> <!--把事务控制在Service层-->
<aop:advisor pointcut-ref="pc" advice-ref="txdvice" />
</aop:config>
name-generator="org.ssm.overwrite.spring.ServicesNameGenerator"
use-default-filters="false"
annotation-config="false">
<context:include-filter type="regex" expression=".*Impl"/>
</context:component-scan>
- 事务:spring事务支持
- 事务:spring事务支持
- spring 事务,事务特性
- Spring事务
- Spring 事务
- Spring事务
- spring事务
- Spring事务
- spring 事务
- spring 事务
- spring事务
- Spring 事务
- spring事务
- Spring 事务
- spring 事务
- Spring事务
- Spring 事务
- spring事务
- Python-SQLite Api
- PHP限制频繁请求
- conf下setting.xml的核心配置
- Android消息机制之三---Message
- SVN CleanUp失败陷入死循环的解决办法
- spring事务
- DW常用快捷键汇总
- 关于android如何对cookie的读取!
- leetcode--Intersection of Two Linked Lists
- BFS (Level Order Traversal)
- Python模块之---Pexpect
- 关联分析:FP-Growth算法
- 更新windows10 world 和 excel 打不开
- 细聊冗余表数据一致性