<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd">
<tx:annotation-driven transaction-manager="transactionManager" />
<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:config/points.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true" />
</bean>
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="*" propagation="REQUIRED" />
<tx:method name="*RnTx" propagation="REQUIRES_NEW"
rollback-for="FroadSQLException" />
<!-- 转赠积分事务处理 -->
<tx:method name="doDonationApp" propagation="REQUIRED" rollback-for="FroadSQLException"/>
<tx:method name="saveSplitTransPointsInfo" propagation="REQUIRES_NEW" />
<tx:method name="saveDonationPotionsAuditNoId" propagation="REQUIRES_NEW" />
<tx:method name="doDonationConfirm" propagation="REQUIRED" rollback-for="FroadSQLException"/>
<!-- 提现申请 -->
<tx:method name="doCashPointsApplication" propagation="REQUIRES_NEW"/>
<tx:method name="refundCashApp" propagation="REQUIRES_NEW"/>
</tx:attributes>
</tx:advice>
<!-- 积分账户操作 start -->
<aop:config>
<aop:pointcut id="userPointAccountServicePc"
expression="execution(* com.froad.points.service2.impl.UserPointAccountServiceImpl.*.*(..))" />
<aop:advisor advice-ref="txAdvice" pointcut-ref="userPointAccountServicePc" />
</aop:config>
<aop:config>
<aop:pointcut id="userComplexServicePc"
expression="execution(* com.froad.points.service2.impl.UserComplexServiceImpl.*.*(..))" />
<aop:advisor advice-ref="txAdvice" pointcut-ref="userComplexServicePc" />
</aop:config>
</beans>
- 浏览: 259163 次
- 性别:
- 来自: 上海
最新评论
-
zuo_qin_bo:
if(df==null){ //这个地方并发多的情况 ...
ThreadLocal解决dateFormat多线程错误 -
kongnan93:
好文!赞一个!!!!
jquery blockUI 居中显示 -
cxc_110928:
如果加上不能出现连续的数字或者字母 如 1234 abcd ...
用java 匹配一个数字和字母密码的正则表达式 -
wzwahl36:
http://www.atool.org/json2javab ...
JSON和JAVA的POJO的相互转换
相关推荐
aop与spring事务处理
Spring AOP配置事务方法,描述了spring的事务配置,方便开发应用和数据库的连接管理。
演示了spring基于AOP代理TransactionProxyFactoryBean实现事务
Spring是一个轻量级的控制反转(IoC)和面向切面(AOP)的容器...Spring AOP 模块为基于 Spring 的应用程序中的对象提供了事务管理服务。通过使用 Spring AOP,不用依赖 EJB 组件,就可以将声明性事务管理集成到应用程序中
针对Java Spring 框架的核心技术场景案例,AOP和事务处理部分的应用案例,涉及业务层接口万次执行效率,百度网盘密码数据兼容处理和转账业务追加日志三个案例
Spring ax/aop声明式事务配置实例
Spring框架-AOP和声明式事务
Spring,Bean调用,事务,AOP,配置详细说明 提升开发效率
spring中aop和Synchronized锁在Spring事务管理下,导致线程不安全。
java springAOP 事务+注释 带全部jar包! 即下即用!
Spring及AOP应用(事务与集成)培训
Spring aop、jdbc和事务tx的学习,里面包含了三种的练习,都在不同的包内。
1.Spring入门和IOC介绍 2.对象依赖 3.AOP入门 4.JDBCTemplate和Spring事务 5.Spring事务原理 6.Spring事务的一个线程安全问题 7.IOC再回顾和面试题 8.AOP再回顾
内含有mybatis 拦截器实现的分页代码,spring 的事务和aop 测试、和反射工具类
NULL 博文链接:https://quicker.iteye.com/blog/674029
spring事务的底层实现流程图 spring事务的底层实现流程图 spring事务的底层实现流程图 spring事务的底层实现流程图 spring事务的底层实现流程图 spring事务的底层实现流程图 spring事务的底层实现流程图 spring事务...
spring 的aop的详解如:切面,连接点,通知,切入点,目标对象,代理对象及annotation方式的aop实现和xml方式的事务管理等
Spring AOP演示程序,实现Spring AOP的嵌套式事务处理。是个绝好的演示程序。
NULL 博文链接:https://tonl.iteye.com/blog/2093314