You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2022/08/31 01:24:15 UTC
[dubbo-website] branch master updated: # 回声测试 (#1442)
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 d7c4c5005c3 # 回声测试 (#1442)
d7c4c5005c3 is described below
commit d7c4c5005c3d15e7c3a65d3627b9e38ddbe6c725
Author: JIAN ZHONG <11...@qq.com>
AuthorDate: Wed Aug 31 09:24:10 2022 +0800
# 回声测试 (#1442)
---
.../advanced-features-and-usage/service/echo-service.md | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/service/echo-service.md b/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/service/echo-service.md
index cf12052a18d..78037b1bf00 100644
--- a/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/service/echo-service.md
+++ b/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/service/echo-service.md
@@ -6,24 +6,23 @@ weight: 12
description: "通过回声测试检测 Dubbo 服务是否可用"
---
-## 使用场景
-
+## 特性说明
回声测试用于检测服务是否可用,回声测试按照正常请求流程执行,能够测试整个调用是否通畅,可用于监控。
## 参考用例
-
[https://github.com/apache/dubbo-samples/tree/master/dubbo-samples-echo](https://github.com/apache/dubbo-samples/tree/master/dubbo-samples-echo)
-## 使用方式
+## 使用场景
+## 使用方式
所有服务自动实现 `EchoService` 接口,只需将任意服务引用强制转型为 `EchoService`,即可使用。
-Spring 配置:
+### Spring 配置
```xml
<dubbo:reference id="memberService" interface="com.xxx.MemberService" />
```
-代码:
+### 代码
```java
// 远程服务引用
MemberService memberService = ctx.getBean("memberService");