You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/10/30 08:23:28 UTC

[GitHub] diecui1202 closed pull request #168: update closed label error auout group-merger in dubbo doc

diecui1202 closed pull request #168: update <dubbo:reference> closed label error auout group-merger in dubbo doc
URL: https://github.com/apache/incubator-dubbo-website/pull/168
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/zh-cn/user/demos/group-merger.md b/docs/zh-cn/user/demos/group-merger.md
index f17ce837..93119da1 100644
--- a/docs/zh-cn/user/demos/group-merger.md
+++ b/docs/zh-cn/user/demos/group-merger.md
@@ -23,7 +23,7 @@
 ```xml
 <dubbo:reference interface="com.xxx.MenuService" group="*">
     <dubbo:method name="getMenuItems" merger="true" />
-</dubbo:service>
+</dubbo:reference>
 ```
 
 某个方法不合并结果,其它都合并结果
@@ -31,7 +31,7 @@
 ```xml
 <dubbo:reference interface="com.xxx.MenuService" group="*" merger="true">
     <dubbo:method name="getMenuItems" merger="false" />
-</dubbo:service>
+</dubbo:reference>
 ```
 
 指定合并策略,缺省根据返回值类型自动匹配,如果同一类型有两个合并器时,需指定合并器的名称 [^2]
@@ -39,7 +39,7 @@
 ```xml
 <dubbo:reference interface="com.xxx.MenuService" group="*">
     <dubbo:method name="getMenuItems" merger="mymerge" />
-</dubbo:service>
+</dubbo:reference>
 ```
 
 指定合并方法,将调用返回结果的指定方法进行合并,合并方法的参数类型必须是返回结果类型本身
@@ -47,7 +47,7 @@
 ```xml
 <dubbo:reference interface="com.xxx.MenuService" group="*">
     <dubbo:method name="getMenuItems" merger=".addAll" />
-</dubbo:service>
+</dubbo:reference>
 ```
 
 [^1]: 从 `2.1.0` 版本开始支持


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org