Spring中事务的Propagation(传播性)的取值
PROPAGATION_REQUIRED -- 加入当前已有事务;只有当前没有事务才起一个新的事务 比如说,ServiceB.methodB的事务级别定义为PROPAGATION_REQUIRED, 那么由于ServiceA.methodA的时候,ServiceA.methodA已经起了事务,这时调用ServiceB.methodB,ServiceB.methodB
转载
2014-08-20 15:15:05 ·
5514 阅读 ·
0 评论