From 3f549f392251710a5323187a2ab6ca83ef934b8f Mon Sep 17 00:00:00 2001 From: "Roger.Chen" Date: Mon, 16 Nov 2020 11:20:26 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-43364=20fix:=20=E5=AE=98=E7=BD=91?= =?UTF-8?q?=E7=9A=84redis=E6=8F=92=E4=BB=B6=E8=BF=9E=E6=8E=A5=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/plugin/db/redis/RedisUniversalConnectionImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/fr/plugin/db/redis/RedisUniversalConnectionImpl.java b/src/main/java/com/fr/plugin/db/redis/RedisUniversalConnectionImpl.java index 18dea85..a32034e 100644 --- a/src/main/java/com/fr/plugin/db/redis/RedisUniversalConnectionImpl.java +++ b/src/main/java/com/fr/plugin/db/redis/RedisUniversalConnectionImpl.java @@ -44,7 +44,9 @@ public class RedisUniversalConnectionImpl extends AbstractUniversalConnectionPro public JSONObject serialize(RedisDatabaseConnection connection) { JSONObject jsonObject = new JSONObject(); try { - jsonObject.put(BASIC_INFO, JSONObject.mapFrom(connection.clone())); + JSONObject basicInfo = JSONObject.mapFrom(connection.clone()); + basicInfo.put("password", DecisionServiceConstants.DEFAULT_PASSWORD); + jsonObject.put(BASIC_INFO, basicInfo); //将ConnectionPoolConfig和RedisConnectionProxyConfig也一次塞给前台展示 jsonObject.put(POOL_INFO, JSONObject.mapFrom(RedisConnectionPoolConfig.getInstance().clone())); JSONObject proxy = JSONObject.mapFrom(RedisConnectionProxyConfig.getInstance().clone());