This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/master by this push:
new 4a187d66530 # hessian 协议 (#1542)
4a187d66530 is described below
commit 4a187d665307860f724c92d10bbaf8afb10f2665
Author: JIAN ZHONG <[email protected]>
AuthorDate: Sat Oct 8 09:23:03 2022 +0800
# hessian 协议 (#1542)
---
.../docs3-v2/java-sdk/reference-manual/protocol/hessian.md | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/content/zh/docs3-v2/java-sdk/reference-manual/protocol/hessian.md
b/content/zh/docs3-v2/java-sdk/reference-manual/protocol/hessian.md
index 64f065db93c..0c7dc5a1031 100644
--- a/content/zh/docs3-v2/java-sdk/reference-manual/protocol/hessian.md
+++ b/content/zh/docs3-v2/java-sdk/reference-manual/protocol/hessian.md
@@ -35,7 +35,7 @@ hessian是一个轻量级的RPC服务,是基于Binary-RPC协议实现的,序
## 使用方式
-#### 依赖
+### 依赖
从 Dubbo 3 开始,Hessian 协议已经不再内嵌在 Dubbo
中,需要单独引入独立的[模块](/zh/release/dubbo-spi-extensions/#dubbo-rpc)。
```xml
@@ -54,28 +54,28 @@ hessian是一个轻量级的RPC服务,是基于Binary-RPC协议实现的,序
</dependency>
```
-定义 hessian 协议:
+### 定义 hessian 协议
```xml
<dubbo:protocol name="hessian" port="8080" server="jetty" />
```
-设置默认协议:
+### 设置默认协议
```xml
<dubbo:provider protocol="hessian" />
```
-设置 service 协议:
+### 设置 service 协议
```xml
<dubbo:service protocol="hessian" />
```
-多端口:
+### 多端口
```xml
<dubbo:protocol id="hessian1" name="hessian" port="8080" />
<dubbo:protocol id="hessian2" name="hessian" port="8081" />
```
-直连:
+### 直连
```xml
<dubbo:reference id="helloService" interface="HelloWorld"
url="hessian://10.20.153.10:8080/helloWorld" />
```