You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "Tomoko-hjf (via GitHub)" <gi...@apache.org> on 2023/03/02 10:03:15 UTC

[GitHub] [dubbo-samples] Tomoko-hjf commented on pull request #753: refactor dubbo-samples-notify

Tomoko-hjf commented on PR #753:
URL: https://github.com/apache/dubbo-samples/pull/753#issuecomment-1451607802

   您好,我使用三种方式验证了`dubbo`的`notify`功能,但是只有第一种`纯注解`方式成功了,想确认一下是不是哪里做错了,导致第二种方式`注解+properties`方式失败了,下面是详细过程:
   
   【方式一】:使用纯注解,这种方式是成功的
   ![image](https://user-images.githubusercontent.com/53164956/222394860-3523d6c7-7c2e-4392-96a7-41e22faa3646.png)
   
   【方式二】:尝试使用注解+properties方式,这种方式是失败的,不会执行回调方法。首先我只使用了@DubboReference注解,然后在dubbo.properties中配置了返回后的方法,具体如下:
   ![image](https://user-images.githubusercontent.com/53164956/222395034-b5bbe488-602f-482d-8edc-5b3475d79ced.png)
   ![image](https://user-images.githubusercontent.com/53164956/222395266-ddcb2037-fd97-494c-9f5c-033a8231b503.png)
   
   【方式三】:尝试在application.yml文件中配置,也是失败的
   ![image](https://user-images.githubusercontent.com/53164956/222395773-314cd94f-f3a9-4337-816e-66f366203aac.png)
   
   可以帮忙看一下第二种方式吗,谢谢~
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org