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); } }