zhou-hao 5 lat temu
rodzic
commit
fd16374b91

+ 1 - 1
hsweb-commons/hsweb-commons-utils/src/main/java/org/hswebframework/web/ThreadLocalUtils.java

@@ -48,7 +48,7 @@ public final class ThreadLocalUtils {
      * @return threadLocal中的全部值
      */
     public static Map<String, Object> getAll() {
-        return local.get();
+        return new HashMap<>(local.get());
     }
 
     /**