Spring的七种传播行为

xiaoxiao2021-02-28  105

propagation_required(默认)       支持当前事务,如果不存在就新建一个 propagation_supports               支持当前事务,如果不存在,就不使用事务 propagation_mendatory            支持当前事务,如果不存在,抛出异常 propagation_requires_new      如果有事务存在,挂起当前事务,创建一个新的事务 propagation_not_supported     以非事务方式运行,如果有事务存在,挂起当前事务 propagation_never                      以非事务方式运行,如果有事务存在,抛出异常 propagation_nested                   如果当前事务存在,则嵌套事务执只对DataSourceTransactionManager 起效
转载请注明原文地址: https://www.6miu.com/read-62677.html

最新回复(0)