try {
String serverAddr = "XX.XX";
String dataId = "DSS.yaml";
String group = "DEFAULT_GROUP";
Properties properties = new Properties();
properties.put("serverAddr", serverAddr);
properties.put("dataId",dataId);
properties.put("group",group);
properties.put("namespace","f32163a9-c76e-465c-8aec-1a0c0804c2b0");
// username: HONORSecurity
// password: HONORSecurity@2021
properties.put("username","HONORSecurity");
properties.put("password","HONORSecurity@2021");
ConfigService configService = NacosFactory.createConfigService(properties);
// ConfigService configService = NacosFactory.createConfigService(serverAddr);
String content = configService.getConfig(dataId, group, 5000);
System.out.println(content);
} catch (NacosException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}