Spring配置事物管理
来源:互联网 发布:车双头螺纹编程 编辑:程序博客网 时间:2024/04/29 07:57
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<aop:aspectj-autoproxy proxy-target-class="true"/>
<tx:annotation-driven transaction-manager="transactionManager"/>
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="save*" propagation="REQUIRED"/>
<tx:method name="update*" propagation="REQUIRED"/>
<tx:method name="remove*" propagation="REQUIRED"/>
<tx:method name="delete*" propagation="REQUIRED"/>
<tx:method name="*" read-only="true"/>
</tx:attributes>
</tx:advice>
<aop:config>
<aop:pointcut id="allMethod" expression="execution( * cn.les.ldbz.jframe.core.BaseServiceImpl.*(..))
||execution(* cn.les.ldbz.system.service.*.*(..))||execution(* cn.les.ldbz.ylbg.service.*.*(..))"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="allMethod"/>
</aop:config>
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<aop:aspectj-autoproxy proxy-target-class="true"/>
<tx:annotation-driven transaction-manager="transactionManager"/>
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="save*" propagation="REQUIRED"/>
<tx:method name="update*" propagation="REQUIRED"/>
<tx:method name="remove*" propagation="REQUIRED"/>
<tx:method name="delete*" propagation="REQUIRED"/>
<tx:method name="*" read-only="true"/>
</tx:attributes>
</tx:advice>
<aop:config>
<aop:pointcut id="allMethod" expression="execution( * cn.les.ldbz.jframe.core.BaseServiceImpl.*(..))
||execution(* cn.les.ldbz.system.service.*.*(..))||execution(* cn.les.ldbz.ylbg.service.*.*(..))"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="allMethod"/>
</aop:config>
- Spring配置事物管理
- spring 事物管理配置
- spring的事物管理配置
- spring事物管理相关配置
- Spring配置hibernate事物管理
- spring配置里面的事物管理
- spring+springMVC声明事物管理配置
- Spring配置之hibernate事物管理AOP
- spring事物管理
- spring事物管理
- spring 事物管理
- spring事物管理
- Spring + mybatis事物管理
- spring事物管理
- spring事物管理
- Spring的事物管理
- Spring 事物管理 @Transactional
- Spring的事物管理
- dig命令的使用方法
- JAVA 二分法查找实现
- 贝叶斯文本分类实验
- Graph DataSource
- 中期的翻译作业:Advanced Windows 2000 Rootkit Detection - Execution Path Analysis
- Spring配置事物管理
- WINDLX 体系结构 汇编实现矩阵乘法
- 快排
- nginx url 重写 实现伪静态
- VB.Net常用的正则表达式(实例)
- hdoj 1175 连连看(dfs+剪枝)
- 中继器·集线器·网桥·交换机·路由器·网关
- 如何去写Android init.rc
- 兼容各个浏览器实现键盘响应事件