kylixs commented on issue #8221: URL: https://github.com/apache/dubbo/issues/8221#issuecomment-877069464
> 如果是这样建议去掉timeout 等非三元组属性注解,不然我一个Service接口不可能只在一个地方有引用,一旦引用的地方多了,后期维护将发生灾难,我要调整其中的一个引用还得把其他引用都找出来改一遍。 可以通过属性配置来解决你的问题: 1、在所有引用reference接口的地方仅指定三元组属性(group, interface, version) ```java @DubboReference private RoleAuthorizationService roleAuthorizationService; ``` 2、在application.properties或者config-center中指定reference的其它属性 ``` dubbo.reference.com.xxx.RoleAuthorizationService.timeout=5000 dubbo.reference.com.xxx.RoleAuthorizationService.retries=3 ``` -- 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]
