kylixs commented on issue #8221:
URL: https://github.com/apache/dubbo/issues/8221#issuecomment-874522653


   > 觉得还是缺乏便利性,写起来很啰嗦,望兼容
   
   Dubbo 2有不少地方的校验是不严谨的,使用过程可能出现一些奇怪的问题。Dubbo 3中加强了配置检查的严谨性,避免出现混淆含糊的用法。
   
   如果要兼容Dubbo 2的方式,请保证所有相同的reference的@DubboReference注解属性相同,相同的三元组(group, 
interface, version) 最终只会创建一个reference对象,不会出现上面的错误。
   
   上面的例子使用到RoleAuthorizationService reference的地方可以都修改为:
   ```
   @DubboReference(timeout = 50000)
   private RoleAuthorizationService roleAuthorizationService;
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to