We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b79643b commit 5031e67Copy full SHA for 5031e67
1 file changed
README.md
@@ -82,6 +82,28 @@ tx-plugins-redis 是LCN 对于redis模块的插件支持(功能暂未实现)
82
83
说明:在使用LCN分布式事务时,只需要将事务的开始方法添加`@TxTransaction`注解即可。详细见demo教程
84
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
+```
107
108
## demo演示教程
109
0 commit comments