From 92c04c0c153817387454937641a36a1233eb00dd Mon Sep 17 00:00:00 2001 From: dark <189192663@qq.com> Date: Sun, 21 Mar 2021 20:53:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99ThreadLoocal=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8Afinal=E4=BF=AE=E9=A5=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dashboard/framework/tracer/core/util/TracerUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cn/iocoder/dashboard/framework/tracer/core/util/TracerUtils.java b/src/main/java/cn/iocoder/dashboard/framework/tracer/core/util/TracerUtils.java index a623d66bf..a492149b4 100644 --- a/src/main/java/cn/iocoder/dashboard/framework/tracer/core/util/TracerUtils.java +++ b/src/main/java/cn/iocoder/dashboard/framework/tracer/core/util/TracerUtils.java @@ -18,7 +18,7 @@ public class TracerUtils { /** * 维护请求线程对应的TraceId */ - private static FastThreadLocal traceIdMap = new FastThreadLocal<>(); + private final static FastThreadLocal traceIdMap = new FastThreadLocal<>(); /** * 保存链路流水号