From 3d75aab5080ecf57d8929f946875038f6f79192e Mon Sep 17 00:00:00 2001 From: AgAngle <1323481023@qq.com> Date: Mon, 22 Apr 2024 17:36:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=89=A7=E8=A1=8C=E5=93=8D=E5=BA=94=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E7=B2=BE=E5=BA=A6=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1039048 --user=陈建星 【接口测试】场景-场景中本地执行和服务端执行一个接口返回值精度不一样 https://www.tapd.cn/55049933/s/1505371 --- .../sdk/src/main/java/io/metersphere/sdk/util/JSON.java | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/util/JSON.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/util/JSON.java index 8341b4df1e..806d6e01dd 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/util/JSON.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/util/JSON.java @@ -31,6 +31,7 @@ public class JSON { static { objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + objectMapper.configure(DeserializationFeature.USE_BIG_DECIMAL_FOR_FLOATS, true); // 支持json字符中带注释符 objectMapper.configure(JsonParser.Feature.ALLOW_COMMENTS, true); // 自动检测所有类的全部属性