This is an automated email from the ASF dual-hosted git repository. github-bot pushed a commit to branch asf-site-v2 in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/asf-site-v2 by this push: new e79e75c347b deploy: e8b6d379c00276a389b0d2d014cc236aced33ccc e79e75c347b is described below commit e79e75c347bc789360015da54ea0ea30f2ff5628 Author: AlbumenJ <album...@users.noreply.github.com> AuthorDate: Tue Apr 2 06:35:55 2024 +0000 deploy: e8b6d379c00276a389b0d2d014cc236aced33ccc --- sitemap.xml | 2 +- zh-cn/overview/reference/protocols/http/index.html | 6 +++--- zh-cn/overview/reference/protocols/index.xml | 2 +- zh-cn/sitemap.xml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sitemap.xml b/sitemap.xml index 1f080dc8154..b095db5bf7d 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://dubbo.apache.org/zh-cn/sitemap.xml</loc><lastmod>2024-04-01T16:32:27+08:00</lastmod></sitemap><sitemap><loc>https://dubbo.apache.org/en/sitemap.xml</loc><lastmod>2024-03-08T10:02:14+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://dubbo.apache.org/zh-cn/sitemap.xml</loc><lastmod>2024-04-02T14:31:25+08:00</lastmod></sitemap><sitemap><loc>https://dubbo.apache.org/en/sitemap.xml</loc><lastmod>2024-03-08T10:02:14+08:00</lastmod></sitemap></sitemapindex> \ No newline at end of file diff --git a/zh-cn/overview/reference/protocols/http/index.html b/zh-cn/overview/reference/protocols/http/index.html index b4f33ed0c4a..65f7f03f686 100644 --- a/zh-cn/overview/reference/protocols/http/index.html +++ b/zh-cn/overview/reference/protocols/http/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://dubbo.apache.org/zh-cn/overview/reference/protocols/http/><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta http-equiv=Content-Security-Policy content="frame-src 'self' https://www.google.com/ https://app.netlify.com/;"><meta name=generator content="Hugo 0.122.0"><link rel="shortcut icon" type=image/png href [...] -<meta property="og:description" content="HTTP Json 协议规范"><meta property="og:type" content="article"><meta property="og:url" content="https://dubbo.apache.org/zh-cn/overview/reference/protocols/http/"><meta property="article:section" content="overview"><meta property="article:modified_time" content="2023-07-05T13:26:44+08:00"><meta itemprop=name content="HTTP 协议规范"><meta itemprop=description content="HTTP Json 协议规范"><meta itemprop=dateModified content="2023-07-05T13:26:44+08:00"><meta ite [...] +<meta property="og:description" content="HTTP Json 协议规范"><meta property="og:type" content="article"><meta property="og:url" content="https://dubbo.apache.org/zh-cn/overview/reference/protocols/http/"><meta property="article:section" content="overview"><meta property="article:modified_time" content="2024-04-02T14:31:25+08:00"><meta itemprop=name content="HTTP 协议规范"><meta itemprop=description content="HTTP Json 协议规范"><meta itemprop=dateModified content="2024-04-02T14:31:25+08:00"><meta ite [...] <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> @@ -697,7 +697,7 @@ dubbo http服务需要传递 rest-service-version 和 rest-service-group 两个h </span></span><span style=display:flex><span>Date: Fri, 28 Apr 2023 14:16:42 GMT </span></span><span style=display:flex><span> </span></span><span style=display:flex><span>"success" -</span></span></code></pre></div><ul><li>content-type支持<ul><li>application/json</li><li>application/x-www-form-urlencoded</li><li>text/plain</li><li>text/xml</li></ul></li></ul><p>目前支持以上media,后面还会对type进行扩展</p><h2 id=快速入门>快速入门</h2><p>详细的依赖以及spring配置,可以参见dubbo 项目的duubo-demo-xml模块 +</span></span></code></pre></div><ul><li>content-type支持<ul><li>application/json</li><li>application/x-www-form-urlencoded</li><li>text/plain</li><li>text/xml</li></ul></li></ul><p>目前支持以上media,后面还会对type进行扩展</p><h2 id=快速入门>快速入门</h2><p>详细的依赖以及spring配置,可以参见dubbo 项目的dubbo-demo-xml模块 <a href=https://github.com/apache/dubbo/tree/3.2/dubbo-demo/dubbo-demo-xml>https://github.com/apache/dubbo/tree/3.2/dubbo-demo/dubbo-demo-xml</a></p><ul><li>spring web 编码 在使用dubbo http的spring web编码时,类注解我们要求必须出现@RequestMapping或者@Controller,以此来判断用户使用的编码风格,决定使用对应的SpringMvcServiceRestMetadataResolver 注解解析器进行元注解解析,Provider一侧我们允许用户使用实现类作为Dubbo Service(相比之前dubbo service export时service必须是接口的要求)</li></ul><p>API</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:#268bd2>@RequestMapping</span>(<span style=color:#2aa198>"/spring/demo/service"</span>) @@ -1188,7 +1188,7 @@ JaxRs注解使用的时候我们要求service 类上必须使用@Path注解, </span></span><span style=display:flex><span>} </span></span></code></pre></div><h2 id=32-与-30-http-实现对比>3.2 与 3.0 HTTP 实现对比</h2><p>因为 Dubbo Java 3.2 内部移除了原本 Resteasy 的实现,因此在对 Resteasy 内置的 Response,extend,ExceptionMapper 支持上将会有所变化 ExceptionMapper 转换成了org.apache.dubbo.rpc.protocol.rest.exception.mapper.ExceptionHandler,Response后面也会做适配处理</p><table><thead><tr><th>版本</th><th>JaxRs</th><th>j2ee</th><th>web容器(tomcat/jetty)</th><th>spring web</th><th>http client(okhttp/httpclient/jdk URLConnnection )</th></tr></thead><tbody><tr><td>3.0</td><td>依赖与resteasy的client和server</td><td>遵循j2ee规范</td><td>依赖常见web容器</td><td>不依赖</td><td>不依赖</td></tr><tr><td>3.2</td><td>不依赖(仅需要JaxRs注解包)</td><td>不遵循</td><td>netty实现的http服务器</td><td>仅依赖sp [...] -<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/reference/protocols/http.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%60%0A%2A+Edit+the+%22front+matte [...] <a href="https://github.com/apache/dubbo-website/issues/new?title=HTTP%20%e5%8d%8f%e8%ae%ae%e8%a7%84%e8%8c%83" 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=#什么是-dubbo-http>什么是 Dubbo Http</a></li><li><a href=#为什么选择dubbo-http>为什么选择Dubbo Http</a></li><li><a href=#协议规范>协议规范</a></li><li><a href=#快速入门>快速入门</a></li><li><a href=#使用场景>使用场景</a></li><li><a href=#32-与-30-http-实现对比>3.2 与 3.0 HTTP 实现对比</a></li></ul></nav></div></div></div></div><footer class="bg-dark py-5 row d-print-none footer-margi [...] \ No newline at end of file diff --git a/zh-cn/overview/reference/protocols/index.xml b/zh-cn/overview/reference/protocols/index.xml index 60d5e239931..6e3cdbd9b4f 100644 --- a/zh-cn/overview/reference/protocols/index.xml +++ b/zh-cn/overview/reference/protocols/index.xml @@ -540,7 +540,7 @@ dubbo http服务需要传递 rest-service-version 和 rest-service-group 两个h </ul> <p>目前支持以上media,后面还会对type进行扩展</p> <h2 id="快速入门">快速入门</h2> -<p>详细的依赖以及spring配置,可以参见dubbo 项目的duubo-demo-xml模块 +<p>详细的依赖以及spring配置,可以参见dubbo 项目的dubbo-demo-xml模块 <a href="https://github.com/apache/dubbo/tree/3.2/dubbo-demo/dubbo-demo-xml">https://github.com/apache/dubbo/tree/3.2/dubbo-demo/dubbo-demo-xml</a></p> <ul> <li>spring web 编码 diff --git a/zh-cn/sitemap.xml b/zh-cn/sitemap.xml index 42aac5e3e56..7f419676ea4 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://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://dubbo.apache.org/zh-cn/overview/mannual/jav [...] \ 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://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://dubbo.apache.org/zh-cn/overview/mannual/jav [...] \ No newline at end of file