|
|
@@ -1,5 +1,6 @@
|
|
|
package com.usoftchina.saas.context;
|
|
|
|
|
|
+import com.alibaba.ttl.TransmittableThreadLocal;
|
|
|
import com.usoftchina.saas.constant.CommonConstants;
|
|
|
import com.usoftchina.saas.utils.ObjectUtils;
|
|
|
|
|
|
@@ -12,7 +13,8 @@ import java.util.Map;
|
|
|
*/
|
|
|
public class BaseContextHolder {
|
|
|
|
|
|
- private static final ThreadLocal<Map<String, Object>> threadLocal = new InheritableThreadLocal<>();
|
|
|
+ //private static final ThreadLocal<Map<String, Object>> threadLocal = new InheritableThreadLocal<>();
|
|
|
+ private static final ThreadLocal<Map<String, Object>> threadLocal = new TransmittableThreadLocal<>();
|
|
|
|
|
|
public static void set(String key, Object value) {
|
|
|
Map<String, Object> map = threadLocal.get();
|