ShenFeng312 commented on issue #13672:
URL: https://github.com/apache/dubbo/issues/13672#issuecomment-1961009618
I think use JavaConfig like
``` java
@ConditionalXXX("local")
@Bean
@Reference(group = "${myapp.group}", interfaceClass =
HelloService.class)
public ReferenceBean<HelloService> helloService() {
return new ReferenceBean();
}
@ConditionalXXX("cluster")
@Bean
@Reference(group = "${myapp.group}", interfaceClass =
HelloService.class)
public HelloService helloService() {
return new HelloService();
}
```
and `@Conditional` is better
--
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]