1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Merge pull request #1967 from weijie321/patch-1

Update spring-transaction.md
This commit is contained in:
Guide 2023-04-01 17:26:03 +08:00 committed by GitHub
commit 51e4380716
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -414,7 +414,7 @@ Class B {
- 在外部方法开启事务的情况下,在内部开启一个新的事务,作为嵌套事务存在。
- 如果外部方法无事务,则单独开启一个事务,与 `PROPAGATION_REQUIRED` 类似。
这里还是简单举个例子:如果 `bMethod()` 回滚的话,`aMethod()`会回滚。
这里还是简单举个例子:如果 `bMethod()` 回滚的话,`aMethod()`不会回滚。如果 `aMethod()` 回滚的话,`bMethod()`会回滚。
```java
@Service