File tree 2 files changed +2
-2
lines changed
tx-client/src/main/java/com/codingapi/tx/aop/bean
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 6
6
*/
7
7
public class TxCompensateLocal {
8
8
9
- private final static ThreadLocal <TxCompensateLocal > currentLocal = new ThreadLocal <TxCompensateLocal >();
9
+ private final static ThreadLocal <TxCompensateLocal > currentLocal = new InheritableThreadLocal <TxCompensateLocal >();
10
10
11
11
private String groupId ;
12
12
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class TxTransactionLocal {
18
18
19
19
private Logger logger = LoggerFactory .getLogger (TxTransactionLocal .class );
20
20
21
- private final static ThreadLocal <TxTransactionLocal > currentLocal = new ThreadLocal <TxTransactionLocal >();
21
+ private final static ThreadLocal <TxTransactionLocal > currentLocal = new InheritableThreadLocal <TxTransactionLocal >();
22
22
23
23
private String groupId ;
24
24
You can’t perform that action at this time.
0 commit comments