String serverAddr = "nacos.anyline.org:80"; String dataId = "anyline-navi.xml"; String group = "DEFAULT_GROUP"; Properties properties = new Properties(); properties.put(PropertyKeyConst.NAMESPACE, "2c9cbc2f-9ad0-4050-848f-70765b3ddd12"); properties.put(PropertyKeyConst.SERVER_ADDR, serverAddr); ConfigService configService = NacosFactory.createConfigService(properties); String content = configService.getConfig(dataId, group, 5000);