Skip to content

Commit 5031e67

Browse files
authored
Update README.md
1 parent b79643b commit 5031e67

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,28 @@ tx-plugins-redis 是LCN 对于redis模块的插件支持(功能暂未实现)
8282

8383
说明:在使用LCN分布式事务时,只需要将事务的开始方法添加`@TxTransaction`注解即可。详细见demo教程
8484

85+
## 关于@TxTransaction 使用说明
86+
87+
@TxTransaction注解是分布式事务的标示。
88+
89+
若存在业务方法:a->b b->c b->d,那么开启分布式事务注解的话,只需要在a方法上添加@TxTransaction即可。
90+
91+
```java
92+
@TxTransaction
93+
@Transactional
94+
public void a(){
95+
b();
96+
}
97+
98+
public void b(){
99+
c();
100+
d();
101+
}
102+
103+
public void c(){}
104+
105+
public void d(){}
106+
```
85107

86108
## demo演示教程
87109

0 commit comments

Comments
 (0)