code: private static RedissonClient buildRedissonClient(RedisBaseConfig redisBaseConfig) {
          Config config = new Config();
  
          if (redisBaseConfig instanceof RedisSingleServerConfig) {
              RedisSingleServerConfig redisSingleServerConfig = (RedisSingleServerConfig) redisBaseConfig;
              SingleServerConfig singleServerConfig = config.useSingleServer();
              BeanUtils.copy(singleServerConfig, redisSingleServerConfig);
              //该字段write方法和get方法类型不一致，需要手动处理
              singleServerConfig.setAddress(redisSingleServerConfig.getAddress());
          } else {
              throw new IllegalArgumentException("位置的配置类型：" + redisBaseConfig.getClass());
          }
  
          return Redisson.create(config);
      }
docs: 根据配置构建一个RedissonClient
  
  @param redisBaseConfig 配置文件
  @return 构建的RedissonClient