Spring XML配置事务管理
来源:互联网 发布:淘宝促销时间表 编辑:程序博客网 时间:2024/05/29 15:46
以下是XML配置事务管理的核心代码,其它配置参考 http://oracle-api.iteye.com/admin/blogs/2077242
<bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource"/> </bean><aop:config> <aop:pointcut id="transactionPointcut" expression="execution(* cn.itcast.service..*.*(..))"/> <aop:advisor advice-ref="txAdvice" pointcut-ref="transactionPointcut"/></aop:config> <tx:advice id="txAdvice" transaction-manager="txManager"> <tx:attributes> <tx:method name="get*" read-only="true" propagation="NOT_SUPPORTED"/> <tx:method name="*"/> <!--其它方法采用默认事务管理配置 --> </tx:attributes></tx:advice>
阅读全文
0 0
- Spring XML配置事务管理
- Spring中的事务管理xml配置
- 【Spring】JDBC事务管理XML配置
- 零xml配置Spring事务管理
- Spring的事务管理,applicationContext.xml中的配置
- Spring事务管理(XML配置声明式)
- 使用XML Schema配置spring事务管理
- spring aop xml事务管理
- Spring 声明式事务管理 Annotation配置 xml文件
- Spring事务管理——使用XML配置声明式事务
- Spring事务管理——使用XML配置声明式事务
- Spring声明式事务管理、事务的传播行为xml配置
- Spring事务管理——使用XML配置声明式事务
- Spring事务管理——使用XML配置声明式事务
- Spring声明式事务管理之xml事务管理
- Spring 事务管理的配置
- spring事务管理配置总结
- 配置spring的事务管理
- HM模型学习(一)
- HBbase单机快速入门环境搭建
- Spring 事务传播属性
- [python]自问自答:python -m参数?
- PCB设计预处理-cadence
- Spring XML配置事务管理
- Spring + hibernate + ehcache
- Spring 集成到web项目中
- shell脚本的命令代换
- Google net v1-v4 paper 简介
- 重定向和转发以及包含的细节
- spring 与struts 和 Hibernate集成时可能遇到的问题
- AngularJS 日期格式化详解
- fabfile 使用