This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch cn-site
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/cn-site by this push:
new 2818b2759d4 deploy: 9fa8022d250ed466dfd3f6aa9f0784321ccc2651
2818b2759d4 is described below
commit 2818b2759d47dce035dc1b7e2b0444bf10f28c67
Author: AlbumenJ <[email protected]>
AuthorDate: Thu Jun 13 02:27:29 2024 +0000
deploy: 9fa8022d250ed466dfd3f6aa9f0784321ccc2651
---
css/app.css | 2 +-
css/chunk-vendors.css | 2 +-
.../advanced-features-and-usage/service/index.xml | 12 +++++++
.../service/service-group/index.html | 14 ++++++--
en/sitemap.xml | 2 +-
js/app.js | 3 +-
js/chunk-vendors.js | 37 +---------------------
sitemap.xml | 2 +-
.../advanced-features-and-usage/service/index.xml | 12 +++++++
.../service/service-group/index.html | 12 +++++--
zh-cn/sitemap.xml | 2 +-
11 files changed, 52 insertions(+), 48 deletions(-)
diff --git a/css/app.css b/css/app.css
index 44c2a2c2469..b9457c8de14 100644
--- a/css/app.css
+++ b/css/app.css
@@ -1 +1 @@
-h3[data-v-76eccb7f]{margin:40px 0
0}ul[data-v-76eccb7f]{list-style-type:none;padding:0}li[data-v-76eccb7f]{display:inline-block;margin:0
10px}a[data-v-76eccb7f]{color:#42b983}.form-layout[data-v-76eccb7f]{display:flex;justify-content:space-between;align-items:flex-start}.left-form[data-v-76eccb7f]{flex:1;max-width:calc(50%
-
20px);margin-right:20px}.right-text[data-v-76eccb7f]{flex-shrink:0;width:calc(50%
- 20px)}.left-form
.el-form-item__label[data-v-76eccb7f]{text-align:left}.left-form [...]
\ No newline at end of file
+/*Respond to static link checks, which will be dynamically replaced at build
time*/
\ No newline at end of file
diff --git a/css/chunk-vendors.css b/css/chunk-vendors.css
index 61c66238ea8..b9457c8de14 100644
--- a/css/chunk-vendors.css
+++ b/css/chunk-vendors.css
@@ -1 +1 @@
-@font-face{font-family:element-icons;src:url(../fonts/element-icons.ff18efd1.woff)
format("woff"),url(../fonts/element-icons.f1a45d74.ttf)
format("truetype");font-weight:400;font-display:"auto";font-style:normal}[class*="
el-icon-"],[class^=el-icon-]{font-family:element-icons!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;vertical-align:baseline;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:gr
[...]
\ No newline at end of file
+/*Respond to static link checks, which will be dynamically replaced at build
time*/
\ No newline at end of file
diff --git a/en/docs3-v2/java-sdk/advanced-features-and-usage/service/index.xml
b/en/docs3-v2/java-sdk/advanced-features-and-usage/service/index.xml
index 95e2ec9d981..faa2b625482 100644
--- a/en/docs3-v2/java-sdk/advanced-features-and-usage/service/index.xml
+++ b/en/docs3-v2/java-sdk/advanced-features-and-usage/service/index.xml
@@ -954,6 +954,18 @@ Effective in dubbo2.7.10 and above.</p>
</span></span><span style="display:flex;"><span><span
style="color:#586e75">//group value is *, the identifier matches any service
group</span>
</span></span><span style="display:flex;"><span><span
style="color:#268bd2">@DubboReference</span>(group <span
style="color:#719e07">=</span> <span
style="color:#2aa198">&#34;*&#34;</span>)
</span></span><span style="display:flex;"><span><span
style="color:#268bd2">private</span> DemoService demoService2;
+</span></span></code></pre></div><h3
id="group-aggregation">Group Aggregation</h3>
+<blockquote>
+<p>Reference Example
+<a
href="https://github.com/apache/dubbo-samples/tree/master/2-advanced/dubbo-samples-merge">https://github.com/apache/dubbo-samples/tree/master/2-advanced/dubbo-samples-merge</a></p>
+</blockquote>
+<div class="highlight"><pre tabindex="0"
style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-java" data-lang="java"><span
style="display:flex;"><span><span style="color:#586e75">// Group
aggregation, merging all groups and returning the result</span>
+</span></span><span style="display:flex;"><span><span
style="color:#268bd2">@DubboReference</span>(group <span
style="color:#719e07">=</span> <span
style="color:#2aa198">&#34;*&#34;</span>, merger <span
style="color:#719e07">=</span> <span
style="color:#2aa198">&#34;true&#34;</span>)
+</span></span><span style="display:flex;"><span><span
style="color:#268bd2">private</span> DemoService demoService2;
+</span></span><span style="display:flex;"><span>
+</span></span><span style="display:flex;"><span><span
style="color:#586e75">// Group aggregation, merging specified groups and
returning the result</span>
+</span></span><span style="display:flex;"><span><span
style="color:#268bd2">@DubboReference</span>(group <span
style="color:#719e07">=</span> <span
style="color:#2aa198">&#34;merge,merge2&#34;</span>, merger <span
style="color:#719e07">=</span> <span
style="color:#2aa198">&#34;true&#34;</span>)
+</span></span><span style="display:flex;"><span><span
style="color:#268bd2">private</span> DemoService demoService2;
</span></span></code></pre></div><p>After starting the Dubbo
service, you can see the references of the same service name in different
groups in the registration center. Taking Nacos as the registration center as
an example, the following content is displayed:
<img src="https://cn.dubbo.apache.org/imgs/blog/service-group-2.png"
alt="image-service-group-2.png"></p>
<h3 id="xml-configuration">xml configuration</h3>
diff --git
a/en/docs3-v2/java-sdk/advanced-features-and-usage/service/service-group/index.html
b/en/docs3-v2/java-sdk/advanced-features-and-usage/service/service-group/index.html
index c5c1c8ac274..07d7a53cc16 100644
---
a/en/docs3-v2/java-sdk/advanced-features-and-usage/service/service-group/index.html
+++
b/en/docs3-v2/java-sdk/advanced-features-and-usage/service/service-group/index.html
@@ -1,5 +1,5 @@
<!doctype html><html lang=en class=no-js><head><meta name=ROBOTS
content="INDEX, FOLLOW"><link rel=canonical
href=https://cn.dubbo.apache.org/en/docs3-v2/java-sdk/advanced-features-and-usage/service/service-group/><script>var
_hmt=_hmt||[];(function(){var
e,t=document.createElement("script");t.src="https://hm.baidu.com/hm.js?3b78f49ba47181e4d998a66b689446e9",e=document.getElementsByTagName("script")[0],e.parentNode.insertBefore(t,e)})()</script><meta
charset=utf-8><meta name=viewport con [...]
-<meta property="og:description" content="Use service groups to differentiate
between different implementations of a service interface"><meta
property="og:type" content="article"><meta property="og:url"
content="https://cn.dubbo.apache.org/en/docs3-v2/java-sdk/advanced-features-and-usage/service/service-group/"><meta
property="article:section" content="docs3-v2"><meta
property="article:modified_time" content="2023-01-02T18:18:49+08:00"><meta
itemprop=name content="Service Group"><meta ite [...]
+<meta property="og:description" content="Use service groups to differentiate
between different implementations of a service interface"><meta
property="og:type" content="article"><meta property="og:url"
content="https://cn.dubbo.apache.org/en/docs3-v2/java-sdk/advanced-features-and-usage/service/service-group/"><meta
property="article:section" content="docs3-v2"><meta
property="article:modified_time" content="2024-06-13T10:22:39+08:00"><meta
itemprop=name content="Service Group"><meta ite [...]
<label for=m-endocs3-v2java-sdk-check><a href=/en/docs3-v2/java-sdk/
class="align-left pl-0 td-sidebar-link td-sidebar-link__section"
id=m-endocs3-v2java-sdk><span>Java</span></a></label><ul class="ul-2
foldable"><li class="td-sidebar-nav__section-title td-sidebar-nav__section
with-child" id=m-endocs3-v2java-sdkquick-start-li><input type=checkbox
id=m-endocs3-v2java-sdkquick-start-check>
<label for=m-endocs3-v2java-sdkquick-start-check><a
href=/en/docs3-v2/java-sdk/quick-start/ class="align-left pl-0 td-sidebar-link
td-sidebar-link__section" id=m-endocs3-v2java-sdkquick-start><span>Quick
Start</span></a></label><ul class="ul-3 foldable"><li
class="td-sidebar-nav__section-title td-sidebar-nav__section without-child"
id=m-endocs3-v2java-sdkquick-startbrief-li><input type=checkbox
id=m-endocs3-v2java-sdkquick-startbrief-check>
<label for=m-endocs3-v2java-sdkquick-startbrief-check><a
href=/en/docs3-v2/java-sdk/quick-start/brief/ title="1 - Rapidly deploy a
microservice application" class="align-left pl-0 td-sidebar-link
td-sidebar-link__page" id=m-endocs3-v2java-sdkquick-startbrief><span>Quickly
deploy a microservice application</span></a></label></li><li
class="td-sidebar-nav__section-title td-sidebar-nav__section without-child"
id=m-endocs3-v2java-sdkquick-startapi-li><input type=checkbox
id=m-endocs3-v2java- [...]
@@ -521,6 +521,14 @@
</span></span><span style=display:flex><span><span style=color:#586e75>//group
value is *, the identifier matches any service group</span>
</span></span><span style=display:flex><span><span
style=color:#268bd2>@DubboReference</span>(group <span
style=color:#719e07>=</span> <span style=color:#2aa198>"*"</span>)
</span></span><span style=display:flex><span><span
style=color:#268bd2>private</span> DemoService demoService2;
+</span></span></code></pre></div><h3 id=group-aggregation>Group
Aggregation</h3><blockquote><p>Reference Example
+<a
href=https://github.com/apache/dubbo-samples/tree/master/2-advanced/dubbo-samples-merge>https://github.com/apache/dubbo-samples/tree/master/2-advanced/dubbo-samples-merge</a></p></blockquote><div
class=highlight><pre tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#586e75>// Group aggregation, merging all groups and returning the
result</span>
+</span></span><span style=display:flex><span><span
style=color:#268bd2>@DubboReference</span>(group <span
style=color:#719e07>=</span> <span style=color:#2aa198>"*"</span>,
merger <span style=color:#719e07>=</span> <span
style=color:#2aa198>"true"</span>)
+</span></span><span style=display:flex><span><span
style=color:#268bd2>private</span> DemoService demoService2;
+</span></span><span style=display:flex><span>
+</span></span><span style=display:flex><span><span style=color:#586e75>//
Group aggregation, merging specified groups and returning the result</span>
+</span></span><span style=display:flex><span><span
style=color:#268bd2>@DubboReference</span>(group <span
style=color:#719e07>=</span> <span
style=color:#2aa198>"merge,merge2"</span>, merger <span
style=color:#719e07>=</span> <span style=color:#2aa198>"true"</span>)
+</span></span><span style=display:flex><span><span
style=color:#268bd2>private</span> DemoService demoService2;
</span></span></code></pre></div><p>After starting the Dubbo service, you can
see the references of the same service name in different groups in the
registration center. Taking Nacos as the registration center as an example, the
following content is displayed:
<img src=/imgs/blog/service-group-2.png alt=image-service-group-2.png></p><h3
id=xml-configuration>xml configuration</h3><h4
id=service-provider-xml-configuration>Service provider (xml
configuration)</h4><p>Use <dubbo:service /> tag, add group parameter</p><div
class=highlight><pre tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-xml data-lang=xml><span style=display:flex><span><span
style=color:#719e07><?xml vers [...]
</span></span><span style=display:flex><span><span
style=color:#268bd2><beans</span> xmlns=<span
style=color:#2aa198>"http://www.springframework.org/schema/beans"</span>
@@ -583,7 +591,7 @@
</span></span><span style=display:flex><span>...
</span></span></code></pre></div><p>After starting the Dubbo service, you can
see the references of the same service name in different groups in the
registration center. Taking Nacos as the registration center as an example, the
following content is displayed:
<img src=/imgs/blog/service-group-2.png
alt=image-service-group-2.png></p><blockquote><p>Always <em>call</em>* only one
available group implementation</p></blockquote><div
id=pre-footer><h2>Feedback</h2><p class=feedback--prompt>Was this page
helpful?</p><button class="btn btn-primary mb-4 feedback--yes">Yes</button>
-<button class="btn btn-primary mb-4
feedback--no">No</button></div><script>const
yes=document.querySelector(".feedback--yes"),no=document.querySelector(".feedback--no");document.querySelectorAll(".feedback--link").forEach(e=>{e.href=e.href+window.location.pathname});const
sendFeedback=e=>{gtag||console.log("!gtag"),gtag("event","click",{event_category:"Helpful",event_label:window.location.pathname,value:e})},disableButtons=()=>{yes.disabled=!0,yes.classList.add("feedback--button__disable
[...]
+<button class="btn btn-primary mb-4
feedback--no">No</button></div><script>const
yes=document.querySelector(".feedback--yes"),no=document.querySelector(".feedback--no");document.querySelectorAll(".feedback--link").forEach(e=>{e.href=e.href+window.location.pathname});const
sendFeedback=e=>{gtag||console.log("!gtag"),gtag("event","click",{event_category:"Helpful",event_label:window.location.pathname,value:e})},disableButtons=()=>{yes.disabled=!0,yes.classList.add("feedback--button__disable
[...]
<a
href="https://github.com/apache/dubbo-website/new/master/content/en/docs3-v2/java-sdk/advanced-features-and-usage/service/service-group.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%6
[...]
<a
href="https://github.com/apache/dubbo-website/issues/new?title=Service%20Group"
target=_blank><i class="fab fa-github fa-fw"></i> Create an issue</a>
-<a href=https://github.com/apache/dubbo/issues/new target=_blank><i class="fas
fa-tasks fa-fw"></i> Create project issue</a></div><nav
id=TableOfContents><ul><li><a href=#feature-description>Feature
description</a></li><li><a href=#scenes-to-be-used>scenes to be
used</a></li><li><a href=#reference-use-case>Reference use case</a></li><li><a
href=#how-to-use>How to use</a><ul><li><a
href=#annotation-configuration>Annotation configuration</a></li><li><a
href=#xml-configuration>xml configura [...]
\ No newline at end of file
+<a href=https://github.com/apache/dubbo/issues/new target=_blank><i class="fas
fa-tasks fa-fw"></i> Create project issue</a></div><nav
id=TableOfContents><ul><li><a href=#feature-description>Feature
description</a></li><li><a href=#scenes-to-be-used>scenes to be
used</a></li><li><a href=#reference-use-case>Reference use case</a></li><li><a
href=#how-to-use>How to use</a><ul><li><a
href=#annotation-configuration>Annotation configuration</a></li><li><a
href=#group-aggregation>Group Aggrega [...]
\ No newline at end of file
diff --git a/en/sitemap.xml b/en/sitemap.xml
index fc3d55cf407..2a9dd9aa35d 100644
--- a/en/sitemap.xml
+++ b/en/sitemap.xml
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://cn.dubbo.apache.org/en/docs3-v2/java-sdk/faq/0/</loc><lastmod>2023-01-02T18:18:49+08:00</lastmod><changefreq>monthly</changefreq><priority>0.5</priority></url><url><loc>https://cn.dubbo.apache.org/en/docs3-v2/java-sdk/faq/0/1/</loc><lastmod>2023-01-03T15:09:00+08:00</lastmod><changefreq>monthly</changefreq><priorit
[...]
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://cn.dubbo.apache.org/en/docs3-v2/java-sdk/faq/0/</loc><lastmod>2023-01-02T18:18:49+08:00</lastmod><changefreq>monthly</changefreq><priority>0.5</priority></url><url><loc>https://cn.dubbo.apache.org/en/docs3-v2/java-sdk/faq/0/1/</loc><lastmod>2023-01-03T15:09:00+08:00</lastmod><changefreq>monthly</changefreq><priorit
[...]
\ No newline at end of file
diff --git a/js/app.js b/js/app.js
index a8a54b4bdbd..069248774b1 100644
--- a/js/app.js
+++ b/js/app.js
@@ -1,2 +1 @@
-(function(){"use strict";var t={9763:function(t,e,s){var
r=s(2856),l=function(){var t=this,e=t._self._c;return
e("div",{attrs:{id:"app"}},[e("el-row",[e("el-col",{attrs:{span:24}},[e("div",{staticStyle:{"font-size":"30px"}},[t._v("Dubbo
基准测试")])])],1),e("el-row",[e("el-col",{attrs:{span:24}},[e("div",{staticStyle:{"font-size":"15px","text-align":"right"}},[e("a",{attrs:{target:"_blank",href:"https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-
[...]
-//# sourceMappingURL=app.489634e4.js.map
\ No newline at end of file
+// Respond to static link checks, which will be dynamically replaced at build
time
\ No newline at end of file
diff --git a/js/chunk-vendors.js b/js/chunk-vendors.js
index b9fab6d3358..069248774b1 100644
--- a/js/chunk-vendors.js
+++ b/js/chunk-vendors.js
@@ -1,36 +1 @@
-(self["webpackChunkdubbo_benchmark"]=self["webpackChunkdubbo_benchmark"]||[]).push([[504],{1656:function(e,t,n){"use
strict";function i(e,t,n,i,r,o,a,s){var l,u="function"===typeof
e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof
__VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&& [...]
-/**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright JS Foundation and other contributors <https://js.foundation/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters &
Editors
- */(function(){var o,a="4.17.10",s=200,l="Unsupported core-js use. Try
https://npms.io/search?q=ponyfill.",u="Expected a
function",c="__lodash_hash_undefined__",h=500,d="__lodash_placeholder__",p=1,f=2,g=4,v=1,m=2,y=1,b=2,_=4,x=8,w=16,S=32,C=64,k=128,M=256,T=512,D=30,I="...",O=800,A=16,E=1,P=2,L=3,N=1/0,R=9007199254740991,$=17976931348623157e292,z=NaN,V=4294967295,F=V-1,B=V>>>1,j=[["ary",k],["bind",y],["bindKey",b],["curry",x],["curryRight",w],["flip",T],["partial",S],["partialRight",C],
[...]
-/*!
- * jQuery JavaScript Library v3.7.1
- * https://jquery.com/
- *
- * Copyright OpenJS Foundation and other contributors
- * Released under the MIT license
- * https://jquery.org/license
- *
- * Date: 2023-08-28T13:37Z
- */
-function(t,n){"use strict";"object"===typeof
e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new
Error("jQuery requires a window with a document");return
n(e)}:n(t)}("undefined"!==typeof window?window:this,(function(n,o){"use
strict";var a=[],s=Object.getPrototypeOf,l=a.slice,u=a.flat?function(e){return
a.flat.call(e)}:function(e){return
a.concat.apply([],e)},c=a.push,h=a.indexOf,d={},p=d.toString,f=d.hasOwnProperty,g=f.toString,v=g.call(Object),m={},y=function(e)
[...]
-/**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @param {?boolean} capture Check if the capture phase is supported.
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- */
-function o(e,t){if(!r.canUseDOM||t&&!("addEventListener"in
document))return!1;var n="on"+e,o=n in document;if(!o){var
a=document.createElement("div");a.setAttribute(n,"return;"),o="function"===typeof
a[n]}return!o&&i&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}r.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=o},9030:function(e,t,n){"use
strict";var i=n(8656),r=n(2021),o= [...]
-//# sourceMappingURL=chunk-vendors.78670755.js.map
\ No newline at end of file
+// Respond to static link checks, which will be dynamically replaced at build
time
\ No newline at end of file
diff --git a/sitemap.xml b/sitemap.xml
index b4da0f383de..63c262df53c 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?><sitemapindex
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://cn.dubbo.apache.org/zh-cn/sitemap.xml</loc><lastmod>2024-05-31T16:00:25+08:00</lastmod></sitemap><sitemap><loc>https://cn.dubbo.apache.org/en/sitemap.xml</loc><lastmod>2024-05-28T10:14:17+08:00</lastmod></sitemap></sitemapindex>
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8" standalone="yes"?><sitemapindex
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://cn.dubbo.apache.org/zh-cn/sitemap.xml</loc><lastmod>2024-06-13T10:22:39+08:00</lastmod></sitemap><sitemap><loc>https://cn.dubbo.apache.org/en/sitemap.xml</loc><lastmod>2024-06-13T10:22:39+08:00</lastmod></sitemap></sitemapindex>
\ No newline at end of file
diff --git
a/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/index.xml
b/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/index.xml
index 2bd2745851b..f41e8210f69 100644
---
a/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/index.xml
+++
b/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/index.xml
@@ -913,6 +913,18 @@ Dubbo协议支持,以及Qos协议支持。这些协议的识别都是由一个
</span></span><span style="display:flex;"><span><span
style="color:#586e75">//group值为*,标识匹配任意服务分组</span>
</span></span><span style="display:flex;"><span><span
style="color:#268bd2">@DubboReference</span>(group <span
style="color:#719e07">=</span> <span
style="color:#2aa198">&#34;*&#34;</span>)
</span></span><span style="display:flex;"><span><span
style="color:#268bd2">private</span> DemoService demoService2;
+</span></span></code></pre></div><h4 id="分组聚合">分组聚合</h4>
+<blockquote>
+<p>参考用例
+<a
href="https://github.com/apache/dubbo-samples/tree/master/2-advanced/dubbo-samples-merge">https://github.com/apache/dubbo-samples/tree/master/2-advanced/dubbo-samples-merge</a></p>
+</blockquote>
+<div class="highlight"><pre tabindex="0"
style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-java" data-lang="java"><span
style="display:flex;"><span><span style="color:#586e75">//
分组聚合,对所有分组进行merge后返回</span>
+</span></span><span style="display:flex;"><span><span
style="color:#268bd2">@DubboReference</span>(group <span
style="color:#719e07">=</span> <span
style="color:#2aa198">&#34;*&#34;</span>, merger <span
style="color:#719e07">=</span> <span
style="color:#2aa198">&#34;true&#34;</span>)
+</span></span><span style="display:flex;"><span><span
style="color:#268bd2">private</span> DemoService demoService2;
+</span></span><span style="display:flex;"><span>
+</span></span><span style="display:flex;"><span><span
style="color:#586e75">// 分组聚合,对指定分组进行merge后返回</span>
+</span></span><span style="display:flex;"><span><span
style="color:#268bd2">@DubboReference</span>(group <span
style="color:#719e07">=</span> <span
style="color:#2aa198">&#34;merge,merge2&#34;</span>, merger <span
style="color:#719e07">=</span> <span
style="color:#2aa198">&#34;true&#34;</span>)
+</span></span><span style="display:flex;"><span><span
style="color:#268bd2">private</span> DemoService demoService2;
</span></span></code></pre></div><p>同样启动 Dubbo
服务后,可在注册中心看到相同服务名不同分组的引用者,以 Nacos 作为注册中心为例,显示如下内容:
<img src="https://cn.dubbo.apache.org/imgs/blog/service-group-2.png"
alt="image-service-group-2.png"></p>
<h3 id="xml配置">xml配置</h3>
diff --git
a/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/service-group/index.html
b/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/service-group/index.html
index 0c54c17f3d0..04abd5a4758 100644
---
a/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/service-group/index.html
+++
b/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/service-group/index.html
@@ -1,5 +1,5 @@
<!doctype html><html lang=zh-cn class=no-js><head><meta name=ROBOTS
content="INDEX, FOLLOW"><link rel=canonical
href=https://cn.dubbo.apache.org/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/service-group/><script>var
_hmt=_hmt||[];(function(){var
e,t=document.createElement("script");t.src="https://hm.baidu.com/hm.js?3b78f49ba47181e4d998a66b689446e9",e=document.getElementsByTagName("script")[0],e.parentNode.insertBefore(t,e)})()</script><meta
charset=utf-8><meta nam [...]
-<meta property="og:description" content="使用服务分组区分服务接口的不同实现"><meta
property="og:type" content="article"><meta property="og:url"
content="https://cn.dubbo.apache.org/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/service-group/"><meta
property="article:section" content="overview"><meta
property="article:modified_time" content="2023-03-02T10:12:02+08:00"><meta
itemprop=name content="服务分组"><meta itemprop=description
content="使用服务分组区分服务接口的不同实现"><meta itemprop=dateModified [...]
+<meta property="og:description" content="使用服务分组区分服务接口的不同实现"><meta
property="og:type" content="article"><meta property="og:url"
content="https://cn.dubbo.apache.org/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/service-group/"><meta
property="article:section" content="overview"><meta
property="article:modified_time" content="2024-06-13T10:22:39+08:00"><meta
itemprop=name content="服务分组"><meta itemprop=description
content="使用服务分组区分服务接口的不同实现"><meta itemprop=dateModified [...]
<label for=m-zh-cnoverviewhome-check><a href=/zh-cn/overview/home/
title="Dubbo 文档" class="align-left pl-0 td-sidebar-link
td-sidebar-link__section"
id=m-zh-cnoverviewhome><span>主页</span></a></label></li><li
class="td-sidebar-nav__section-title td-sidebar-nav__section with-child"
id=m-zh-cnoverviewquickstart-li><input type=checkbox
id=m-zh-cnoverviewquickstart-check>
<label for=m-zh-cnoverviewquickstart-check><a href=/zh-cn/overview/quickstart/
title="Dubbo 入门" class="align-left pl-0 td-sidebar-link
td-sidebar-link__section"
id=m-zh-cnoverviewquickstart><span>入门</span></a></label><ul class="ul-2
foldable"><li class="td-sidebar-nav__section-title td-sidebar-nav__section
with-child" id=m-zh-cnoverviewquickstartjava-li><input type=checkbox
id=m-zh-cnoverviewquickstartjava-check>
<label for=m-zh-cnoverviewquickstartjava-check><a
href=/zh-cn/overview/quickstart/java/ title="Java 微服务开发入门" class="align-left
pl-0 td-sidebar-link td-sidebar-link__section"
id=m-zh-cnoverviewquickstartjava><span>Java</span></a></label><ul class="ul-3
foldable"><li class="td-sidebar-nav__section-title td-sidebar-nav__section
without-child" id=m-zh-cnoverviewquickstartjavabrief-li><input type=checkbox
id=m-zh-cnoverviewquickstartjavabrief-check>
@@ -699,6 +699,14 @@
</span></span><span style=display:flex><span><span
style=color:#586e75>//group值为*,标识匹配任意服务分组</span>
</span></span><span style=display:flex><span><span
style=color:#268bd2>@DubboReference</span>(group <span
style=color:#719e07>=</span> <span style=color:#2aa198>"*"</span>)
</span></span><span style=display:flex><span><span
style=color:#268bd2>private</span> DemoService demoService2;
+</span></span></code></pre></div><h4 id=分组聚合>分组聚合</h4><blockquote><p>参考用例
+<a
href=https://github.com/apache/dubbo-samples/tree/master/2-advanced/dubbo-samples-merge>https://github.com/apache/dubbo-samples/tree/master/2-advanced/dubbo-samples-merge</a></p></blockquote><div
class=highlight><pre tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#586e75>// 分组聚合,对所有分组进行merge后返回</span>
+</span></span><span style=display:flex><span><span
style=color:#268bd2>@DubboReference</span>(group <span
style=color:#719e07>=</span> <span style=color:#2aa198>"*"</span>,
merger <span style=color:#719e07>=</span> <span
style=color:#2aa198>"true"</span>)
+</span></span><span style=display:flex><span><span
style=color:#268bd2>private</span> DemoService demoService2;
+</span></span><span style=display:flex><span>
+</span></span><span style=display:flex><span><span style=color:#586e75>//
分组聚合,对指定分组进行merge后返回</span>
+</span></span><span style=display:flex><span><span
style=color:#268bd2>@DubboReference</span>(group <span
style=color:#719e07>=</span> <span
style=color:#2aa198>"merge,merge2"</span>, merger <span
style=color:#719e07>=</span> <span style=color:#2aa198>"true"</span>)
+</span></span><span style=display:flex><span><span
style=color:#268bd2>private</span> DemoService demoService2;
</span></span></code></pre></div><p>同样启动 Dubbo 服务后,可在注册中心看到相同服务名不同分组的引用者,以
Nacos 作为注册中心为例,显示如下内容:
<img src=/imgs/blog/service-group-2.png alt=image-service-group-2.png></p><h3
id=xml配置>xml配置</h3><h4 id=服务提供端-xml-配置>服务提供端( xml 配置)</h4><p>使用
<dubbo:service /> 标签,添加 group 参数</p><div class=highlight><pre tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-xml data-lang=xml><span style=display:flex><span><span
style=color:#719e07><?xml version="1.0"
encoding="UTF-8"?></span>
</span></span><span style=display:flex><span><span
style=color:#268bd2><beans</span> xmlns=<span
style=color:#2aa198>"http://www.springframework.org/schema/beans"</span>
@@ -761,7 +769,7 @@
</span></span><span style=display:flex><span>...
</span></span></code></pre></div><p>同样启动 Dubbo 服务后,可在注册中心看到相同服务名不同分组的引用者,以
Nacos 作为注册中心为例,显示如下内容:
<img src=/imgs/blog/service-group-2.png
alt=image-service-group-2.png></p><blockquote><p>总是 <strong>只调</strong>
一个可用组的实现</p></blockquote><div id=pre-footer><h2>反馈</h2><p
class=feedback--prompt>此页是否对您有帮助?</p><button class="btn btn-primary mb-4
feedback--yes">是</button>
-<button class="btn btn-primary mb-4
feedback--no">否</button></div><script>const
yes=document.querySelector(".feedback--yes"),no=document.querySelector(".feedback--no");document.querySelectorAll(".feedback--link").forEach(e=>{e.href=e.href+window.location.pathname});const
sendFeedback=e=>{gtag||console.log("!gtag"),gtag("event","click",{event_category:"Helpful",event_label:window.location.pathname,value:e})},disableButtons=()=>{yes.disabled=!0,yes.classList.add("feedback--button__disabled
[...]
+<button class="btn btn-primary mb-4
feedback--no">否</button></div><script>const
yes=document.querySelector(".feedback--yes"),no=document.querySelector(".feedback--no");document.querySelectorAll(".feedback--link").forEach(e=>{e.href=e.href+window.location.pathname});const
sendFeedback=e=>{gtag||console.log("!gtag"),gtag("event","click",{event_category:"Helpful",event_label:window.location.pathname,value:e})},disableButtons=()=>{yes.disabled=!0,yes.classList.add("feedback--button__disabled
[...]
<a
href="https://github.com/apache/dubbo-website/new/master/content/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/service-group.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-s
[...]
<a
href="https://github.com/apache/dubbo-website/issues/new?title=%e6%9c%8d%e5%8a%a1%e5%88%86%e7%bb%84"
target=_blank><i class="fab fa-github fa-fw"></i> 登记问题</a>
<a href=https://github.com/apache/dubbo/issues/new target=_blank><i class="fas
fa-tasks fa-fw"></i> 提交项目问题</a></div><nav id=TableOfContents><ul><li><a
href=#特性说明>特性说明</a></li><li><a href=#使用场景>使用场景</a></li><li><a
href=#使用方式>使用方式</a><ul><li><a href=#注解配置>注解配置</a></li><li><a
href=#xml配置>xml配置</a></li><li><a
href=#api配置>API配置</a></li></ul></li></ul></nav></div></div></div></div><footer
class="bg-dark py-5 row d-print-none footer-margin-0"><div
class="container-fluid mx-sm-5"><div class=row> [...]
\ No newline at end of file
diff --git a/zh-cn/sitemap.xml b/zh-cn/sitemap.xml
index 3cde95fae22..092d3284f71 100644
--- a/zh-cn/sitemap.xml
+++ b/zh-cn/sitemap.xml
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://cn.dubbo.apache.org/zh-cn/blog/2023/01/16/%E9%98%BF%E9%87%8C%E5%B7%B4%E5%B7%B4%E5%8D%87%E7%BA%A7-dubbo3-%E5%85%A8%E9%9D%A2%E5%8F%96%E4%BB%A3-hsf2/</loc><lastmod>2023-11-28T15:14:12+08:00</lastmod><changefreq>monthly</changefreq><priority>0.5</priority></url><url><loc>https://cn.dubbo.apache.org/zh-cn/overview/mannu
[...]
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://cn.dubbo.apache.org/zh-cn/blog/2023/01/16/%E9%98%BF%E9%87%8C%E5%B7%B4%E5%B7%B4%E5%8D%87%E7%BA%A7-dubbo3-%E5%85%A8%E9%9D%A2%E5%8F%96%E4%BB%A3-hsf2/</loc><lastmod>2023-11-28T15:14:12+08:00</lastmod><changefreq>monthly</changefreq><priority>0.5</priority></url><url><loc>https://cn.dubbo.apache.org/zh-cn/overview/mannu
[...]
\ No newline at end of file