You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@dubbo.apache.org by vi...@apache.org on 2018/12/25 09:27:08 UTC

[incubator-dubbo-samples] 03/03: fix sample issue

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

victory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-samples.git

commit 1eb0b9e881bde0f5fec76a893c665f547f4ae72c
Author: cvictory <sh...@gmail.com>
AuthorDate: Tue Dec 25 17:26:49 2018 +0800

    fix sample issue
---
 dubbo-samples-annotation/pom.xml                                 | 9 ++++++++-
 dubbo-samples-merge/src/main/resources/spring/merge-consumer.xml | 4 ++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/dubbo-samples-annotation/pom.xml b/dubbo-samples-annotation/pom.xml
index 8383f11..1211662 100644
--- a/dubbo-samples-annotation/pom.xml
+++ b/dubbo-samples-annotation/pom.xml
@@ -27,4 +27,11 @@
 
     <artifactId>dubbo-samples-annotation</artifactId>
 
-</project>
\ No newline at end of file
+    <dependencies>
+        <dependency>
+            <groupId>com.alibaba.spring</groupId>
+            <artifactId>spring-context-support</artifactId>
+            <version>1.0.2</version>
+        </dependency>
+    </dependencies>
+</project>
diff --git a/dubbo-samples-merge/src/main/resources/spring/merge-consumer.xml b/dubbo-samples-merge/src/main/resources/spring/merge-consumer.xml
index 5db3bf7..21c1401 100644
--- a/dubbo-samples-merge/src/main/resources/spring/merge-consumer.xml
+++ b/dubbo-samples-merge/src/main/resources/spring/merge-consumer.xml
@@ -26,6 +26,6 @@
 
     <dubbo:registry address="zookeeper://127.0.0.1:2181"/>
 
-    <dubbo:reference id="mergeService" interface="org.apache.dubbo.samples.merge.api.MergeService" group="*"/>
+    <dubbo:reference id="mergeService" interface="org.apache.dubbo.samples.merge.api.MergeService" group="*" merger="true"/>
 
-</beans>
\ No newline at end of file
+</beans>