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-java-chassis.git


The following commit(s) were added to refs/heads/master by this push:
     new b50e6d5  [SCB-378] fix apllo readme (#599)
b50e6d5 is described below

commit b50e6d5fc4c267bb8e844cd0f05f178b2bcc9498
Author: lijasonvip <[email protected]>
AuthorDate: Thu Mar 15 16:32:36 2018 +0800

    [SCB-378] fix apllo readme (#599)
    
    * SCB-378 fix apllo readme 2
    
    Signed-off-by: lijasonvip <[email protected]>
    
    * SCB-378 fix readme for apollo configuration
    
    Signed-off-by: lijasonvip <[email protected]>
---
 samples/config-apollo-sample/README.md | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)

diff --git a/samples/config-apollo-sample/README.md 
b/samples/config-apollo-sample/README.md
index 398b826..0e96218 100644
--- a/samples/config-apollo-sample/README.md
+++ b/samples/config-apollo-sample/README.md
@@ -22,9 +22,9 @@ To use Apollo as configuration source in ServiceComb Java 
Chassis services:
   apollo:
     config:
       serverUri: http://127.0.0.1:8070 #Apollo portal server address
-      serviceName: apollo-test         #service name
-      env: DEV                         #default valueDEV
-      clusters: test-cluster           #default value default
+      serviceName: apollo-test         #service name use AppId in apollo
+      env: DEV                         #default value DEV
+      clusters: default                #default value default
       namespace: application           #default value application
       token:                           #get token from Apollo web pages
   ```
@@ -33,6 +33,21 @@ To use Apollo as configuration source in ServiceComb Java 
Chassis services:
 
   [Need to start service center 
first](http://servicecomb.incubator.apache.org/users/setup-environment/#)
 
+  Compile the source code at root directory of ServiceComb Java Chassis, which 
is `incubator-servicecomb-java-chassis/`, and use `mvn exec` to execute the 
main class `MainServer`.
+
+  ```bash
+  cd incubator-servicecomb-java-chassis/
+  mvn clean install -Psamples -DskipTests                      #only need to 
install at first time.
+  cd samples/config-apollo-sample/
+  mvn exec:java -Dexec.mainClass="MainServer"
+  ```
+
+* Verify configurations can be configured dynamically.
+
+  Before publishing a new configuration items from apollo portal, `MainServer` 
will just print `DynamicProperty: {name=timeout, current value=default}` 
+
+  After `timeout` configuration is published with value `100`, `MainServer` 
will print `DynamicProperty: {name=timeout, current value=100}` 
+
 
 ## More
 

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to