Browse Source

REPORT-43364 fix: 官网的redis插件连接失败

pull/1/head
Roger.Chen 4 years ago
parent
commit
3f549f3922
  1. 4
      src/main/java/com/fr/plugin/db/redis/RedisUniversalConnectionImpl.java

4
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());

Loading…
Cancel
Save