【fix sonar】 MasterslaveRedissonConfigStrategyImpl.java文件
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ public class MasterslaveRedissonConfigStrategyImpl implements RedissonConfigStra
|
|||||||
}
|
}
|
||||||
slaveList.remove(0);
|
slaveList.remove(0);
|
||||||
|
|
||||||
config.useMasterSlaveServers().addSlaveAddress((String[]) slaveList.toArray());
|
config.useMasterSlaveServers().addSlaveAddress(slaveList.toArray(new String[0]));
|
||||||
log.info("初始化主从方式Config,redisAddress:" + address);
|
log.info("初始化主从方式Config,redisAddress:" + address);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("主从Redisson初始化错误", e);
|
log.error("主从Redisson初始化错误", e);
|
||||||
|
|||||||
Reference in New Issue
Block a user