- public class ConfigServerDemo {
-
- public static void main(String[] args) throws NacosException, InterruptedException {
- String serverAddr = "localhost";
- String dataId = "nacos-config-demo.yaml";
- String group = "DEFAULT_GROUP";
- Properties properties = new Properties();
- properties.put(PropertyKeyConst.SERVER_ADDR, serverAddr);
- //获取配置服务
- ConfigService co