Authored by qinchao

Merge branch 'dev_config_center'

... ... @@ -21,14 +21,20 @@ public class ConfigCenterEnvInfoServiceImpl implements IConfigCenterEnvInfoServi
public List<TypeInfo> queryAllTypesInfo() {
Properties properties = ConfigCenterEnvInfo.getAllEnv();
List<TypeInfo> rtn = new ArrayList<>();
TypeInfo awsIns = new TypeInfo();
for (Map.Entry entry: properties.entrySet()) {
String key = String.valueOf(entry.getKey());
if (StringUtils.isEmpty(key))
continue;
TypeInfo ins = new TypeInfo();
ins.setTypeName(key);
rtn.add(ins);
if ("zookeeper_aws".equals(key)) {
awsIns.setTypeName(key);
} else {
TypeInfo ins = new TypeInfo();
ins.setTypeName(key);
rtn.add(ins);
}
}
rtn.add(0, awsIns);
return rtn;
}
}
... ...