You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by hy...@apache.org on 2021/01/28 05:43:27 UTC
[dubbo-website] branch master updated: fix typo in events-notify.md
(#720)
This is an automated email from the ASF dual-hosted git repository.
hyunkun 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 6d945d7 fix typo in events-notify.md (#720)
6d945d7 is described below
commit 6d945d77a23bbbe0a0742610e7a607be7b790153
Author: Huang YunKun <ht...@gmail.com>
AuthorDate: Thu Jan 28 13:43:16 2021 +0800
fix typo in events-notify.md (#720)
---
content/en/docs/v2.7/user/examples/events-notify.md | 4 ++--
content/zh/docs/v2.7/user/examples/events-notify.md | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/content/en/docs/v2.7/user/examples/events-notify.md b/content/en/docs/v2.7/user/examples/events-notify.md
index 87f788e..1f1e593 100644
--- a/content/en/docs/v2.7/user/examples/events-notify.md
+++ b/content/en/docs/v2.7/user/examples/events-notify.md
@@ -65,7 +65,7 @@ class NotifyImpl implements Notify {
## Configure the Callback at service consumer-side.
```xml
-<bean id ="demoCallback" class = "org.apache.dubbo.callback.implicit.NofifyImpl" />
+<bean id ="demoCallback" class = "org.apache.dubbo.callback.implicit.NotifyImpl" />
<dubbo:reference id="demoService" interface="org.apache.dubbo.callback.implicit.IDemoService" version="1.0.0" group="cn" >
<dubbo:method name="get" async="true" onreturn = "demoCallback.onreturn" onthrow="demoCallback.onthrow" />
</dubbo:reference>
@@ -83,7 +83,7 @@ There are several situations with the tow attributes[^2].
```java
IDemoService demoService = (IDemoService) context.getBean("demoService");
-NofifyImpl notify = (NofifyImpl) context.getBean("demoCallback");
+NotifyImpl notify = (NotifyImpl) context.getBean("demoCallback");
int requestId = 2;
Person ret = demoService.get(requestId);
Assert.assertEquals(null, ret);
diff --git a/content/zh/docs/v2.7/user/examples/events-notify.md b/content/zh/docs/v2.7/user/examples/events-notify.md
index 36add3a..197fbe2 100644
--- a/content/zh/docs/v2.7/user/examples/events-notify.md
+++ b/content/zh/docs/v2.7/user/examples/events-notify.md
@@ -69,7 +69,7 @@ class NotifyImpl implements Notify {
#### 服务消费者 Callback 配置
```xml
-<bean id ="demoCallback" class = "org.apache.dubbo.callback.implicit.NofifyImpl" />
+<bean id ="demoCallback" class = "org.apache.dubbo.callback.implicit.NotifyImpl" />
<dubbo:reference id="demoService" interface="org.apache.dubbo.callback.implicit.IDemoService" version="1.0.0" group="cn" >
<dubbo:method name="get" async="true" onreturn = "demoCallback.onreturn" onthrow="demoCallback.onthrow" />
</dubbo:reference>
@@ -92,7 +92,7 @@ class NotifyImpl implements Notify {
```java
IDemoService demoService = (IDemoService) context.getBean("demoService");
-NofifyImpl notify = (NofifyImpl) context.getBean("demoCallback");
+NotifyImpl notify = (NotifyImpl) context.getBean("demoCallback");
int requestId = 2;
Person ret = demoService.get(requestId);
Assert.assertEquals(null, ret);