This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git

commit b9d80c92e8c8ccbcee79ff56bf1eeb0719da707c
Author: lijasonvip <lib...@huawei.com>
AuthorDate: Thu Mar 8 17:01:43 2018 +0800

    SCB-210 update document for apollo configuration items
    
    Signed-off-by: lijasonvip <lib...@huawei.com>
---
 _users/cn/dynamic-config.md | 12 ++----------
 _users/dynamic-config.md    | 12 ++----------
 2 files changed, 4 insertions(+), 20 deletions(-)

diff --git a/_users/cn/dynamic-config.md b/_users/cn/dynamic-config.md
index 719854e..0cc7b1e 100644
--- a/_users/cn/dynamic-config.md
+++ b/_users/cn/dynamic-config.md
@@ -58,21 +58,13 @@ redirect_from:
 
 ```xml
     <dependency>
-          <groupId>com.netflix.archaius</groupId>
-          <artifactId>archaius-core</artifactId>
-    </dependency>   
-    <dependency>
-          <groupId>io.servicecomb</groupId>
+          <groupId>org.apache.servicecomb</groupId>
           <artifactId>config-apollo</artifactId>
     </dependency>
 ```
 ### 添加配置项
 
    ```yaml
-   cse:
-     config:
-       client:
-       serverUri: http://127.0.0.1:8070
    apollo:
      config:
        serverUri: http://127.0.0.1:8070
@@ -83,7 +75,7 @@ redirect_from:
        token: testtoken
        refreshInterval: 10
    ```
-​      
`cse.config.client.serverUri`配置项填写Apollo配置中心portal服务地址,只是表示对接配置中心,`apollo.config`下的配置项是用户创建的应用参数,包括服务地址,用户名,集群,namespace,token等参数。这些参数可以在配置中心页面项目信息栏中查到。需要注意的是`refreshInterval:
 10`表示应用会每隔10秒去配置中心查询一次最新的配置信息,不配置此项默认刷新周期为30秒。
+​      
`apollo.config`下的配置项是用户创建的应用参数,包括服务地址,用户名,集群,namespace,token等参数。这些参数可以在配置中心页面项目信息栏中查到。需要注意的是`refreshInterval:
 10`表示应用会每隔10秒去配置中心查询一次最新的配置信息,不配置此项默认刷新周期为30秒。
 
 ### 获取动态属性
 
diff --git a/_users/dynamic-config.md b/_users/dynamic-config.md
index 2d61f7e..d64cc63 100644
--- a/_users/dynamic-config.md
+++ b/_users/dynamic-config.md
@@ -58,21 +58,13 @@ Visit `http://192.168.199.1:8070/open/manage.html` and fill 
in application ID an
 
 ```xml
     <dependency>
-          <groupId>com.netflix.archaius</groupId>
-          <artifactId>archaius-core</artifactId>
-    </dependency>   
-    <dependency>
-          <groupId>io.servicecomb</groupId>
+          <groupId>org.apache.servicecomb</groupId>
           <artifactId>config-apollo</artifactId>
     </dependency>
 ```
 ### Add configurations in microservice.yaml
 
    ```yaml
-   cse:
-     config:
-       client:
-       serverUri: http://127.0.0.1:8070
    apollo:
      config:
        serverUri: http://127.0.0.1:8070
@@ -83,7 +75,7 @@ Visit `http://192.168.199.1:8070/open/manage.html` and fill 
in application ID an
        token: testtoken
        refreshInterval: 10
    ```
-​      Configuration `cse.config.client.serverUri` is the portal address of 
Apollo configuration center just the same as `apollo.config.serverUri`. 
Configurations under `apollo.config` are parameters of the project that users 
created above, including serviceName, env, clusters, namespace, token and 
refreshInterval. Pay attention to `refreshInterval: 10`, it means service will 
fetch latest configuration items every each 10 seconds, default refresh cycle 
is 30 second if no value is configured here.
+​      Configurations under `apollo.config` are parameters of the project that 
users created above, including serviceName, env, clusters, namespace, token and 
refreshInterval. Pay attention to `refreshInterval: 10`, it means service will 
fetch latest configuration items every each 10 seconds, default refresh cycle 
is 30 second if no value is configured here.
 
 ### Get configurations
 

-- 
To stop receiving notification emails like this one, please contact
ningji...@apache.org.

Reply via email to