Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21e858e

Browse files
committed
add propagation not supports in spring transactional sample
1 parent 330c7f0 commit 21e858e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

springboot-transactional-sample/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ Propagation 属性确定代理应该对那些方法增加事务行为,这样
2727

2828
#### (四)PROPAGATION_REQUIRES_NEW
2929
该传播级别的特点是,每次都会新建一个事务,并且同时将上下文中的事务挂起,执行当前新建事务完成以后,上下文事务恢复再执行
30+
31+
#### (五)PROPAGATION_NOT_SUPPORTED
32+
该传播属性不支持事务,该级别的特点就上下文中存在事务,则挂起事务,执行当前逻辑,结束后恢复上下文的事务
33+
好处:可以帮助我们把事务缩小范围。因为一个事务越大,它存在的风险也就越多。所以在处理事务过程中,要保证尽可能的缩小范围
34+

0 commit comments

Comments
 (0)