public static List<String> buildServiceIds(ProviderConfig<?> config) {
        List<ServerConfig> servers = config.getServer();
        if (CommonUtils.isEmpty(servers)) {
            return Collections.emptyList();
        }
        return servers.stream()
                .map(server -> buildServiceId(config, server))
                .collect(Collectors.toList());
    }
Key can only contain A-Z a-z 0-9 _ and -.
@param key
@return
registry/registry-consul/src/main/java/com/alipay/sofa/rpc/registry/consul/ConsulUtils.java