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

Skip to content

Commit bb9b981

Browse files
committed
add propagation never in spring transactional sample
1 parent 21e858e commit bb9b981

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

springboot-transactional-sample/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ Propagation 属性确定代理应该对那些方法增加事务行为,这样
3232
该传播属性不支持事务,该级别的特点就上下文中存在事务,则挂起事务,执行当前逻辑,结束后恢复上下文的事务
3333
好处:可以帮助我们把事务缩小范围。因为一个事务越大,它存在的风险也就越多。所以在处理事务过程中,要保证尽可能的缩小范围
3434

35+
#### (六)PROPAGATION_NEVER
36+
不能在事务中运行,该事务传播级别要求中不能存在事务,一旦有事务,就抛出runtime异常,强制停止执行

0 commit comments

Comments
 (0)