xuande / nacos-consul-adapter

nacos prometheus
MIT License
59 stars 35 forks source link

nacos指定namespace 和 group #4

Open 593769290 opened 4 years ago

593769290 commented 4 years ago

spring: application: name: nacos-consul-adapter cloud: nacos: config: namespace: xxxxxxxxxxxxxxxxxxxxxxx group: MY_GROUP discovery: namespace: xxxxxxxxxxxxxxxxxxxxxxx group: MY_GROUP server-addr: 192.168.1.230:8848


按上面的配置运行,需要升级依赖版本 2.1.2.RELEASE


        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-alibaba-dependencies</artifactId>
            <version>2.1.2.RELEASE</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>

very good project!