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 b59c9c3c86d update 增加序列化插件依赖说明 (#1525)
b59c9c3c86d is described below
commit b59c9c3c86df3938b159b1b8be143c94c3ac88bb
Author: CrazyLionLi <[email protected]>
AuthorDate: Thu Sep 29 11:07:31 2022 +0800
update 增加序列化插件依赖说明 (#1525)
---
.../performance/serialization.md | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git
a/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/performance/serialization.md
b/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/performance/serialization.md
index 8ede4a9a48b..68e560d2ec9 100644
---
a/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/performance/serialization.md
+++
b/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/performance/serialization.md
@@ -57,7 +57,26 @@ dubbo RPC主要用于两个dubbo系统之间作远程调用,特别适合高并
## 启用Kryo和FST
-使用Kryo和FST非常简单,只需要在dubbo RPC的XML配置中添加一个属性即可:
+使用Kryo和FST非常简单,只需要先增加对应的依赖:
+更多插件: [Dubbo SPI
Extensions](https://dubbo.apache.org/zh/release/dubbo-spi-extensions)
+
+```xml
+<dependency>
+ <groupId>org.apache.dubbo.extensions</groupId>
+ <artifactId>dubbo-serialization-kryo</artifactId>
+ <version>1.0.0</version>
+</dependency>
+```
+
+```xml
+<dependency>
+ <groupId>org.apache.dubbo.extensions</groupId>
+ <artifactId>dubbo-serialization-fst</artifactId>
+ <version>1.0.0</version>
+</dependency>
+```
+
+然后在dubbo RPC的XML配置中添加一个属性即可:
```xml
<dubbo:protocol name="dubbo" serialization="kryo"/>