From e4c05d381d2dadf129b3a4cb499c8ea67e7fc481 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 08 Nov 2021 17:19:47 +0800
Subject: [PATCH] fix
---
zq-erp/src/main/java/com/matrix/core/tools/MdcUtil.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/zq-erp/src/main/java/com/matrix/core/tools/MdcUtil.java b/zq-erp/src/main/java/com/matrix/core/tools/MdcUtil.java
index 24f6098..c3c0a67 100644
--- a/zq-erp/src/main/java/com/matrix/core/tools/MdcUtil.java
+++ b/zq-erp/src/main/java/com/matrix/core/tools/MdcUtil.java
@@ -13,12 +13,12 @@
private static final String TR_KEY = "Tr";
public static void setRequestId() {
- MDC.clear();
+ MDC.remove(TR_KEY);
MDC.put(TR_KEY, "TR = " + StringUtils.getRandomString(16) + "");
}
public static void clearRequestId() {
- MDC.clear();
+ MDC.remove(TR_KEY);
}
public static String getMdc() {
--
Gitblit v1.9.1