From 5a583a17be9973748c209c3c3fa97d70bb2ebf72 Mon Sep 17 00:00:00 2001 From: opensnail <598092184@qq.com> Date: Wed, 24 Jul 2024 11:10:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(sj=5F1.2.0-beta1):=20=E4=BC=98=E5=8C=96json?= =?UTF-8?q?=E8=BD=AC=E6=8D=A2=E5=A4=B1=E8=B4=A5=E7=9A=84=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/aizuda/snailjob/common/core/util/JsonUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snail-job-common/snail-job-common-core/src/main/java/com/aizuda/snailjob/common/core/util/JsonUtil.java b/snail-job-common/snail-job-common-core/src/main/java/com/aizuda/snailjob/common/core/util/JsonUtil.java index a54307d69..6f088b908 100644 --- a/snail-job-common/snail-job-common-core/src/main/java/com/aizuda/snailjob/common/core/util/JsonUtil.java +++ b/snail-job-common/snail-job-common-core/src/main/java/com/aizuda/snailjob/common/core/util/JsonUtil.java @@ -228,7 +228,7 @@ public class JsonUtil { try { return objectMapper.readValue(jsonString, clazz); } catch (Exception e) { - throw new SnailJobCommonException("Json转对象失败", jsonString, e); + throw new SnailJobCommonException("Json转对象失败 参数:{}", jsonString, e); } } @@ -243,7 +243,7 @@ public class JsonUtil { try { return objectMapper.readValue(jsonString, typeReference); } catch (Exception e) { - throw new SnailJobCommonException("Json转对象失败!", e); + throw new SnailJobCommonException("Json转对象失败 参数:{}", jsonString, e); } } @@ -258,7 +258,7 @@ public class JsonUtil { try { return objectMapper.readValue(jsonString, javaType); } catch (Exception e) { - throw new SnailJobCommonException("Json转对象失败!", e); + throw new SnailJobCommonException("Json转对象失败 参数:{}", jsonString, e); } } @@ -272,7 +272,7 @@ public class JsonUtil { try { return objectMapper.readTree(jsonString); } catch (Exception e) { - throw new SnailJobCommonException("Json转对象失败!", e); + throw new SnailJobCommonException("Json转对象失败 参数:{}", jsonString, e); } }