Feature: 客户端实例注册添加额外配置信息.

pull/10/head
chen.ma 3 years ago
parent 9400439700
commit 09aa3f2e53

@ -24,6 +24,8 @@ public class InstanceInfo {
private String hostName;
private String groupKey;
private String port;
private String instanceId;

@ -41,4 +41,17 @@ public class ContentUtil {
return resultStr;
}
public static String getGroupKey(String... parameters) {
StringBuilder stringBuilder = new StringBuilder();
for (int i = 0; i < parameters.length; i++) {
stringBuilder.append(parameters[i]);
if (i < parameters.length - 1) {
stringBuilder.append(Constants.GROUP_KEY_DELIMITER);
}
}
return stringBuilder.toString();
}
}

Loading…
Cancel
Save