This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch next-asf-site
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/next-asf-site by this push:
new 4846767201 deploy: 9dffee986bfaabeb2ebfc26dc3bb73f1b6f6367a
4846767201 is described below
commit 4846767201439fff2ce40b213d9d2c10cf8e32a5
Author: AlbumenJ <[email protected]>
AuthorDate: Sun Feb 19 10:08:49 2023 +0000
deploy: 9dffee986bfaabeb2ebfc26dc3bb73f1b6f6367a
---
en/index.html | 2 +-
en/sitemap.xml | 2 +-
sitemap.xml | 2 +-
zh-cn/overview/tasks/develop/index.xml | 6 +++---
zh-cn/overview/tasks/develop/service_reference/index.html | 6 +++---
zh-cn/overview/tasks/develop/version_group/index.html | 6 +++---
zh-cn/sitemap.xml | 2 +-
7 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/en/index.html b/en/index.html
index 577195f1f8..61bab96fed 100644
--- a/en/index.html
+++ b/en/index.html
@@ -9,7 +9,7 @@ Dubbo |ˈdʌbəʊ| offers six key functionalities, which include
transparent int
<a class="btn btn-lg btn-secondary mr-5 mb-4 mt-3 rounded"
href=overview/quickstart/><span
style=margin:2rem!important>快速开始</span></a></div></div><div class="col-12
pt-3"><div class="pt-3 lead text-center"><div class=mx-auto><a class="btn
btn-lg btn-primary mr-3 mb-4" href=/en/overview/quickstart/>Quick Start <i
class="fas fa-arrow-alt-circle-right ml-2"></i></a>
<a class="btn btn-lg btn-success mr-3 mb-4" href=/en/overview/>Overview <i
class="fas fa-book-open ml-2"></i></a>
<a class="btn btn-lg btn-light mr-3 mb-4" href=/en/release/>DOWNLOAD <i
class="fas fa-download ml-2"></i></a>
-<a class="btn btn-lg btn-secondary mr-3 mb-4"
href=https://github.com/apache/dubbo>GITHUB <i class="fab fa-github
ml-2"></i></a><p class="lead mt-5 font-weight-bold">Apache Dubbo is a
microservice framework that provides high-performance RPC communication,
traffic governance, observability and other solutions for large-scale
microservice practices.<br>Covers Java, Golang and other language SDK
implementations.</p></div><p><a class="btn btn-link text-white"
href=#td-block-1 aria-label="Re [...]
+<a class="btn btn-lg btn-secondary mr-3 mb-4"
href=https://github.com/apache/dubbo>GITHUB <i class="fab fa-github
ml-2"></i></a><p class="lead mt-5 font-weight-bold">Apache Dubbo is a
microservice framework that provides high-performance RPC communication,
traffic governance, observability and other solutions for large-scale
microservice practices.<br>Covers Java, Golang and other language SDK
implementations.</p></div></div></div></div></div></section><section
id=section-1><div class="c [...]
<script src=/js/bootstrap.min.js
integrity=sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy
crossorigin=anonymous></script>
<script
src=/js/main.min.a5faf003454d52ae4e2fa290ba90fb3661ea7e329283ae3bf7cf0909f0960468.js
integrity="sha256-pfrwA0VNUq5OL6KQupD7NmHqfjKSg647988JCfCWBGg="
crossorigin=anonymous></script>
<script src=https://cdn.jsdelivr.net/npm/@docsearch/js@3></script>
diff --git a/en/sitemap.xml b/en/sitemap.xml
index 0121d909f1..38028a985f 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>http://static.dubbo.apache.org:8080/en/docs3-v2/java-sdk/faq/0/</loc><lastmod>2023-01-02T18:18:49+08:00</lastmod><changefreq>monthly</changefreq><priority>0.5</priority><xhtml:link
rel="alternate" hreflang="zh-cn"
href="http://static.dubbo.apache.org:8080/zh-cn/docs3-v2/java-sdk/faq/0/"/><xhtml:link
rel="alternate" hreflan [...]
\ 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>http://static.dubbo.apache.org:8080/en/docs3-v2/java-sdk/faq/0/</loc><lastmod>2023-01-02T18:18:49+08:00</lastmod><changefreq>monthly</changefreq><priority>0.5</priority><xhtml:link
rel="alternate" hreflang="zh-cn"
href="http://static.dubbo.apache.org:8080/zh-cn/docs3-v2/java-sdk/faq/0/"/><xhtml:link
rel="alternate" hreflan [...]
\ No newline at end of file
diff --git a/sitemap.xml b/sitemap.xml
index f6a2e83249..655175381a 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>http://static.dubbo.apache.org:8080/zh-cn/sitemap.xml</loc><lastmod>2023-02-19T17:54:30+08:00</lastmod></sitemap><sitemap><loc>http://static.dubbo.apache.org:8080/en/sitemap.xml</loc><lastmod>2023-02-19T17:54:30+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>http://static.dubbo.apache.org:8080/zh-cn/sitemap.xml</loc><lastmod>2023-02-19T18:04:54+08:00</lastmod></sitemap><sitemap><loc>http://static.dubbo.apache.org:8080/en/sitemap.xml</loc><lastmod>2023-02-19T17:54:30+08:00</lastmod></sitemap></sitemapindex>
\ No newline at end of file
diff --git a/zh-cn/overview/tasks/develop/index.xml
b/zh-cn/overview/tasks/develop/index.xml
index aefa04463c..643a22bd35 100644
--- a/zh-cn/overview/tasks/develop/index.xml
+++ b/zh-cn/overview/tasks/develop/index.xml
@@ -4,7 +4,7 @@
<p>本文将基于 Dubbo Samples 示例演示如何快速搭建并部署一个微服务应用。
代码地址:<a
href="https://github.com/apache/dubbo-samples/10-task/dubbo-samples-develop">dubbo-samples-develop</a>
代码分为三个模块,如下图:
-<img
src="http://static.dubbo.apache.org:8080/imgs/v3/develop/develop-project.png"
alt="project"></p>
+<code></code></p>
<h2 id="准备">准备</h2>
<p>本示例代码基于Springboot 3.0</p>
<p>1、首先需要一个可用的注册中心Zookeeper,Nacos,Redis均可。</p>
@@ -70,7 +70,7 @@
</span></span><span style="display:flex;"><span> <span
style="color:#719e07">}</span>
</span></span><span style="display:flex;"><span><span
style="color:#719e07">}</span>
</span></span></code></pre></div><p>启动成功后,在注册中心可以看到对应的服务列表,如图:
-<img
src="http://static.dubbo.apache.org:8080/imgs/v3/develop/develop-service-list.png"
alt="serviceList"></p>
+<code></code></p>
<h2 id="调用服务">调用服务</h2>
<p>创建DemoTask类,通过@DubboReference注解对需要调用的服务进行引入。即可像调用本地方法一样调用远程服务了。</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-java" data-lang="java"><span
style="display:flex;"><span><span
style="color:#586e75">//实现CommandLineRunner 让Springboot启动后调用run方法
@@ -256,7 +256,7 @@ Provider端异步执行将阻塞的业务从Dubbo内部线程池切换到业务
</span></span><span style="display:flex;"><span> <span
style="color:#719e07">}</span>
</span></span><span style="display:flex;"><span><span
style="color:#719e07">}</span>
</span></span></code></pre></div><p>启动服务后,可以在注册中心看到对应的服务列表,如下:
-<img
src="http://static.dubbo.apache.org:8080/imgs/v3/develop/develop-service-list.png"
alt="serviceList"></p>
+<code></code></p>
<p>客户端接口调用:</p>
<blockquote>
<p>使用 @DubboReference 注解,添加 group 参数和 version 参数</p>
diff --git a/zh-cn/overview/tasks/develop/service_reference/index.html
b/zh-cn/overview/tasks/develop/service_reference/index.html
index 5b883edc66..8ae3b78299 100644
--- a/zh-cn/overview/tasks/develop/service_reference/index.html
+++ b/zh-cn/overview/tasks/develop/service_reference/index.html
@@ -1,11 +1,11 @@
-<!doctype html><html lang=zh-cn class=no-js><head><meta name=ROBOTS
content="INDEX, FOLLOW"><meta charset=utf-8><meta name=viewport
content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta
name=generator content="Hugo 0.110.0"><link rel="shortcut icon" type=image/png
href=/imgs/favicon.png><link rel=apple-touch-icon
href=/favicons/apple-touch-icon-180x180.png sizes=180x180><link rel=manifest
href=/manifest.webmanifest><title>开发服务 | Apache Dubbo</title><meta
property="og:title" [...]
+<!doctype html><html lang=zh-cn class=no-js><head><meta name=ROBOTS
content="INDEX, FOLLOW"><meta charset=utf-8><meta name=viewport
content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta
name=generator content="Hugo 0.110.0"><link rel="shortcut icon" type=image/png
href=/imgs/favicon.png><link rel=apple-touch-icon
href=/favicons/apple-touch-icon-180x180.png sizes=180x180><link rel=manifest
href=/manifest.webmanifest><title>开发服务 | Apache Dubbo</title><meta
property="og:title" [...]
<link rel=preload
href=/scss/main.min.209e23d05c00cd0efb0dc9daf65a7d29491c7e1c8f21c8ec76798fe1e0a467a9.css
as=style><link
href=/scss/main.min.209e23d05c00cd0efb0dc9daf65a7d29491c7e1c8f21c8ec76798fe1e0a467a9.css
rel=stylesheet integrity><script src=/js/jquery-3.5.1.min.js
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin=anonymous></script>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@docsearch/css@3><meta
name=theme-color content="#326ce5"><link rel=stylesheet
href=/css/feature-states.css><meta name=description
content="通过示例简单展示一个Dubbo服务的发布和调用"><meta property="og:description"
content="通过示例简单展示一个Dubbo服务的发布和调用"><meta name=twitter:description
content="通过示例简单展示一个Dubbo服务的发布和调用"><meta property="og:url"
content="http://static.dubbo.apache.org:8080/zh-cn/overview/tasks/develop/service_reference/"><meta
property="og:titl [...]
<script src=https://g.alicdn.com/mamba/assets/0.0.7/mse-arc-ui.min.js></script>
<link rel=stylesheet
href=https://g.alicdn.com/mamba/assets/0.0.7/mse-arc-ui.min.css><link
href=/css/community.css rel=stylesheet><link href=/css/contactus.css
rel=stylesheet><script src=/js/script.js></script><title>开发服务 | Apache
Dubbo</title></head><body class="td-page td-documentation"><header><nav
class="js-navbar-scroll navbar navbar-expand navbar-dark flex-column
flex-md-row td-navbar" data-auto-burger=primary><a class=navbar-brand
href=/zh-cn/><span class=navbar-logo></span><span [...]
代码地址:<a
href=https://github.com/apache/dubbo-samples/10-task/dubbo-samples-develop>dubbo-samples-develop</a>
代码分为三个模块,如下图:
-<img src=/imgs/v3/develop/develop-project.png alt=project></p><h2
id=准备>准备</h2><p>本示例代码基于Springboot
3.0</p><p>1、首先需要一个可用的注册中心Zookeeper,Nacos,Redis均可。</p><p>2、新建一个maven工程,添加如下依赖</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:#586e75><!-- registry dependency --></span>
+<code></code></p><h2
id=准备>准备</h2><p>本示例代码基于Springboot
3.0</p><p>1、首先需要一个可用的注册中心Zookeeper,Nacos,Redis均可。</p><p>2、新建一个maven工程,添加如下依赖</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:#586e75><!-- registry dependency --></span>
</span></span><span style=display:flex><span> <span
style=color:#268bd2><dependency></span>
</span></span><span style=display:flex><span> <span
style=color:#268bd2><groupId></span>com.alibaba.nacos<span
style=color:#268bd2></groupId></span>
</span></span><span style=display:flex><span> <span
style=color:#268bd2><artifactId></span>nacos-client<span
style=color:#268bd2></artifactId></span>
@@ -57,7 +57,7 @@
</span></span><span style=display:flex><span> <span
style=color:#719e07>}</span>
</span></span><span style=display:flex><span><span style=color:#719e07>}</span>
</span></span></code></pre></div><p>启动成功后,在注册中心可以看到对应的服务列表,如图:
-<img src=/imgs/v3/develop/develop-service-list.png alt=serviceList></p><h2
id=调用服务>调用服务</h2><p>创建DemoTask类,通过@DubboReference注解对需要调用的服务进行引入。即可像调用本地方法一样调用远程服务了。</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-java data-lang=java><span style=display:flex><span><span
style=color:#586e75>//实现CommandLineRunner 让Springboot启动后调用run方法
+<code></code></p><h2
id=调用服务>调用服务</h2><p>创建DemoTask类,通过@DubboReference注解对需要调用的服务进行引入。即可像调用本地方法一样调用远程服务了。</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-java data-lang=java><span style=display:flex><span><span
style=color:#586e75>//实现CommandLineRunner 让Springboot启动后调用run方法
</span></span></span><span style=display:flex><span><span
style=color:#586e75></span><span style=color:#268bd2>@Component</span>
</span></span><span style=display:flex><span><span
style=color:#268bd2>public</span> <span style=color:#268bd2>class</span> <span
style=color:#268bd2>DemoTask</span> <span style=color:#268bd2>implements</span>
CommandLineRunner <span style=color:#719e07>{</span>
</span></span><span style=display:flex><span> <span
style=color:#268bd2>@DubboReference</span><span
style=color:#719e07>(</span>group <span style=color:#719e07>=</span> <span
style=color:#2aa198>"group1"</span><span
style=color:#719e07>,</span>version <span style=color:#719e07>=</span> <span
style=color:#2aa198>"1.0"</span><span style=color:#719e07>)</span>
diff --git a/zh-cn/overview/tasks/develop/version_group/index.html
b/zh-cn/overview/tasks/develop/version_group/index.html
index 5de39e4e46..9a13c44903 100644
--- a/zh-cn/overview/tasks/develop/version_group/index.html
+++ b/zh-cn/overview/tasks/develop/version_group/index.html
@@ -3,12 +3,12 @@
接口定义:
public interface DevelopService { String invoke(String param); } 接口实现1:
@DubboService(group = "group1",version = "1.0") public class
DevelopProviderServiceV1 implements DevelopService{ @Override public String
invoke(String param) { StringBuilder s = new StringBuilder();
s.append("ServiceV1 param:").append(param); return s.toString(); } }
接口实现2:
-@DubboService(group = "group2",version = "2.0") public class
DevelopProviderServiceV2 implements DevelopService{ @Override public String
invoke(String param) { StringBuilder s = new StringBuilder(); s."><meta
property="og:type" content="article"><meta property="og:url"
content="http://static.dubbo.apache.org:8080/zh-cn/overview/tasks/develop/version_group/"><meta
property="article:section" content="overview"><meta
property="article:modified_time" content="2023-02-14T14:46 [...]
+@DubboService(group = "group2",version = "2.0") public class
DevelopProviderServiceV2 implements DevelopService{ @Override public String
invoke(String param) { StringBuilder s = new StringBuilder(); s."><meta
property="og:type" content="article"><meta property="og:url"
content="http://static.dubbo.apache.org:8080/zh-cn/overview/tasks/develop/version_group/"><meta
property="article:section" content="overview"><meta
property="article:modified_time" content="2023-02-19T18:04 [...]
使用场景
当同一个接口针对不同的业务场景、不同的使用需求或者不同的功能模块等场景,可使用服务分组来区分不同的实现方式。同时,这些不同实现所提供的服务是可并存的,也支持互相调用。
当接口实现需要升级又要保留原有实现的情况下,即出现不兼容升级时,我们可以使用不同版本号进行区分。 使用方式 使用 @DubboService 注解,添加
group 参数和 version 参数 本示例中使用"发布和调用" 中示例代码
接口定义:
public interface DevelopService { String invoke(String param); } 接口实现1:
@DubboService(group = "group1",version = "1.0") public class
DevelopProviderServiceV1 implements DevelopService{ @Override public String
invoke(String param) { StringBuilder s = new StringBuilder();
s.append("ServiceV1 param:").append(param); return s.toString(); } }
接口实现2:
-@DubboService(group = "group2",version = "2.0") public class
DevelopProviderServiceV2 implements DevelopService{ @Override public String
invoke(String param) { StringBuilder s = new StringBuilder(); s."><meta
itemprop=dateModified content="2023-02-14T14:46:52+08:00"><meta
itemprop=wordCount content="130"><meta itemprop=keywords content><meta
name=twitter:card content="summary"><meta name=twitter:title
content="版本与分组"><meta name=twitter:description content="版本与分组 Dubbo服务中, [...]
+@DubboService(group = "group2",version = "2.0") public class
DevelopProviderServiceV2 implements DevelopService{ @Override public String
invoke(String param) { StringBuilder s = new StringBuilder(); s."><meta
itemprop=dateModified content="2023-02-19T18:04:54+08:00"><meta
itemprop=wordCount content="131"><meta itemprop=keywords content><meta
name=twitter:card content="summary"><meta name=twitter:title
content="版本与分组"><meta name=twitter:description content="版本与分组 Dubbo服务中, [...]
使用场景
当同一个接口针对不同的业务场景、不同的使用需求或者不同的功能模块等场景,可使用服务分组来区分不同的实现方式。同时,这些不同实现所提供的服务是可并存的,也支持互相调用。
当接口实现需要升级又要保留原有实现的情况下,即出现不兼容升级时,我们可以使用不同版本号进行区分。 使用方式 使用 @DubboService 注解,添加
group 参数和 version 参数 本示例中使用"发布和调用" 中示例代码
接口定义:
public interface DevelopService { String invoke(String param); } 接口实现1:
@@ -55,7 +55,7 @@ public interface DevelopService { String invoke(String
param); } 接口实现1
</span></span><span style=display:flex><span> <span
style=color:#719e07>}</span>
</span></span><span style=display:flex><span><span style=color:#719e07>}</span>
</span></span></code></pre></div><p>启动服务后,可以在注册中心看到对应的服务列表,如下:
-<img src=/imgs/v3/develop/develop-service-list.png
alt=serviceList></p><p>客户端接口调用:</p><blockquote><p>使用 @DubboReference 注解,添加
group 参数和 version 参数</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:#268bd2>@DubboReference</span><span
style=color:#719e07>(</span>group <span style=color:#719e07>=</span> <span
style [...]
+<code></code></p><p>客户端接口调用:</p><blockquote><p>使用
@DubboReference 注解,添加 group 参数和 version 参数</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:#268bd2>@DubboReference</span><span
style=color:#719e07>(</span>group <span style=color:#719e07>=</span> <span st
[...]
</span></span><span style=display:flex><span><span
style=color:#268bd2>private</span> DevelopService developService<span
style=color:#719e07>;</span>
</span></span><span style=display:flex><span>
</span></span><span style=display:flex><span><span
style=color:#268bd2>@DubboReference</span><span
style=color:#719e07>(</span>group <span style=color:#719e07>=</span> <span
style=color:#2aa198>"group2"</span><span
style=color:#719e07>,</span>version <span style=color:#719e07>=</span> <span
style=color:#2aa198>"2.0"</span><span style=color:#719e07>)</span>
diff --git a/zh-cn/sitemap.xml b/zh-cn/sitemap.xml
index 31a4a0966c..ee62cddc00 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>http://static.dubbo.apache.org:8080/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-01-16T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.5</priority></url><url><loc>http://static.dubbo.apache.org:8080/zh-c
[...]
\ 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>http://static.dubbo.apache.org:8080/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-01-16T00:00:00+00:00</lastmod><changefreq>monthly</changefreq><priority>0.5</priority></url><url><loc>http://static.dubbo.apache.org:8080/zh-c
[...]
\ No newline at end of file