CSE如何使用apollo作为配置中心

基本步骤包括两个:

   1    引入依赖关系

1

2

3

4

 <dependency>

         <groupId>org.apache.servicecomb</groupId>

         <artifactId>config-apollo</artifactId>  

</dependency>

   2    配置apollo地址

1

2

3

4

5

6

7

8

9

apollo: 

  config:

    serverUri: http://127.0.0.1:8070

    erviceName: provider-id                #创建应用时的AppID        

    env: DEV        

    clusters: default        

    namespace: application        

    token: de3c5b2e6d8535b96        

    refreshInterval: 10   

详细使用步骤参考:

http://www.chinacion.cn/article/2945.html

猜你喜欢

转载自blog.csdn.net/looook/article/details/86999291
今日推荐