We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在灰度发布配置时,不应该使用 NacosRibbonEnhanceConsumer 中的 @Bean public IRule myRule() { return new GrayRule(); } 此方式会导致在多个不同名称的服务中的路由分配时出现错误(调用服务A,该路由分配到了服务B上),应使用 @RibbonClients(defaultConfiguration = {GrayRule.class}) 若不同服务使用不同的路由,可使用 @RibbonClients(value = { @RibbonClient(name = "A", configuration = GrayRuleA.class), @RibbonClient(name = "B", configuration = GrayRuleB.class) })
@Bean public IRule myRule() { return new GrayRule(); }
@RibbonClients(defaultConfiguration = {GrayRule.class})
@RibbonClients(value = { @RibbonClient(name = "A", configuration = GrayRuleA.class), @RibbonClient(name = "B", configuration = GrayRuleB.class) })
The text was updated successfully, but these errors were encountered:
是的,直接基于 @bean 构造 IRule 有一点点粗暴 ~ 感谢更正!
Sorry, something went wrong.
是的,直接基于@bean构造IRule有一点点粗暴〜感谢更正!
不用谢,请尽快更新源码即可。
已创建了合并请求。
No branches or pull requests
在灰度发布配置时,不应该使用 NacosRibbonEnhanceConsumer 中的
@Bean public IRule myRule() { return new GrayRule(); }
此方式会导致在多个不同名称的服务中的路由分配时出现错误(调用服务A,该路由分配到了服务B上),应使用
@RibbonClients(defaultConfiguration = {GrayRule.class})
若不同服务使用不同的路由,可使用
@RibbonClients(value = { @RibbonClient(name = "A", configuration = GrayRuleA.class), @RibbonClient(name = "B", configuration = GrayRuleB.class) })
The text was updated successfully, but these errors were encountered: