摘要: 一、Propagation (事务的传播属性)Propagation : key属性确定代理应该给哪个方法增加事务行为。这样的属性最重要的部份是传播行为。 有以下选项可供使用: PROPAGATION_REQUIRED--支持当前事务,如果当前没有事务,就新建一个事务。这是最常见的选择。PROPAG 阅读全文
posted @ 2016-11-02 16:47 Mason.Ke 阅读(184) 评论(0) 推荐(0) 编辑
摘要: /** * @author http://blog.csdn.net/java2000_wl * @version 1.0.0 */ public class RedisBillLockHandler implements IBatchBillLockHandler { private static final Logger LOGGER = LoggerFac... 阅读全文
posted @ 2016-11-02 16:11 Mason.Ke 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Eclipse不能识别<tx:advice/>标签 在开发Spring的过程中,有时会出现Eclipse不能识别<tx:advice/>标签。 提示出现以下错误: The prefix "tx" for element "tx:advice" is not bound 这个错误的原因很简单是: 我们 阅读全文
posted @ 2016-11-02 15:44 Mason.Ke 阅读(324) 评论(0) 推荐(0) 编辑
摘要: spring AOP 默认对RuntimeException()异常或是其子类进行事务回滚,也就是说 事务回滚:throw new RuntimeException("xxxxxxxxxxxx"); 事物不回滚:throw new Exception("xxxxxxxxxxxx"); 那么,如何在抛 阅读全文
posted @ 2016-11-02 15:21 Mason.Ke 阅读(1544) 评论(0) 推荐(0) 编辑