You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by dl...@apache.org on 2019/08/20 11:18:23 UTC

[dubbo-erlang] branch 0.4.0 updated: sample: upgrade dubbo version to 2.7.2

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

dlive pushed a commit to branch 0.4.0
in repository https://gitbox.apache.org/repos/asf/dubbo-erlang.git


The following commit(s) were added to refs/heads/0.4.0 by this push:
     new 1a02faa  sample: upgrade dubbo version to 2.7.2
1a02faa is described below

commit 1a02faa2b18f50055f96be819efe7cdb0bd7235e
Author: DLive <xs...@163.com>
AuthorDate: Tue Aug 20 19:17:46 2019 +0800

    sample: upgrade dubbo version to 2.7.2
---
 samples/dubbo-sample-service/pom.xml                               | 7 ++++++-
 .../src/main/resources/applicationProvider.xml                     | 3 ++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/samples/dubbo-sample-service/pom.xml b/samples/dubbo-sample-service/pom.xml
index 7c09fdb..7b2ccef 100644
--- a/samples/dubbo-sample-service/pom.xml
+++ b/samples/dubbo-sample-service/pom.xml
@@ -32,7 +32,12 @@
         <dependency>
             <groupId>org.apache.dubbo</groupId>
             <artifactId>dubbo</artifactId>
-            <version>2.7.1</version>
+            <version>2.7.2</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.dubbo</groupId>
+            <artifactId>dubbo-metadata-report-zookeeper</artifactId>
+            <version>2.7.2</version>
         </dependency>
         <dependency>
             <groupId>log4j</groupId>
diff --git a/samples/dubbo-sample-service/src/main/resources/applicationProvider.xml b/samples/dubbo-sample-service/src/main/resources/applicationProvider.xml
index 7a32064..1232781 100644
--- a/samples/dubbo-sample-service/src/main/resources/applicationProvider.xml
+++ b/samples/dubbo-sample-service/src/main/resources/applicationProvider.xml
@@ -6,7 +6,8 @@
     <dubbo:application name="hello-world"/><!-- 注册地址 -->
     <dubbo:registry address="zookeeper://127.0.0.1:2181"/>
     <dubbo:protocol name="dubbo" port="20880"/>
-
+    <dubbo:config-center address="zookeeper://127.0.0.1:2181" />
+    <dubbo:metadata-report address="zookeeper://127.0.0.1:2181" />
 
     <dubbo:consumer check="false" timeout="300000" id="dubboConsumerConfig" retries="0"/>