From 0f3145f389c17b2f8ebb9a72671c70f16ce0581c Mon Sep 17 00:00:00 2001 From: zlt2000 Date: Mon, 30 Nov 2020 10:25:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- .../src/main/java/com/central/common/filter/TraceFilter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ce3ce891..98df5d37 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ central-platform -- 父项目,公共依赖 - +
华为云腾讯云腾讯云
diff --git a/zlt-commons/zlt-common-spring-boot-starter/src/main/java/com/central/common/filter/TraceFilter.java b/zlt-commons/zlt-common-spring-boot-starter/src/main/java/com/central/common/filter/TraceFilter.java index d07fe343..ca66d5f4 100644 --- a/zlt-commons/zlt-common-spring-boot-starter/src/main/java/com/central/common/filter/TraceFilter.java +++ b/zlt-commons/zlt-common-spring-boot-starter/src/main/java/com/central/common/filter/TraceFilter.java @@ -42,7 +42,7 @@ public class TraceFilter extends OncePerRequestFilter { filterChain.doFilter(request, response); } finally { - MDC.clear(); + MDC.remove(CommonConstant.LOG_TRACE_ID); } } }