dubbo服务既是服务提供者也是服务消费者

<dubbo:registry/>此标签两个重要属性

private boolean register;//是否注册到注册中心。默认开启,如果关闭的话,只订阅不注册。 private boolean subscribe;//是否从注册中心订阅。默认开启,如果关闭的话,仅注册,不订阅。

如:只订阅,不注册到此地址

<dubbo:registry address="xxx" register="false" id="basic"/>
<dubbo:reference id="xxxService" interface="xxx.xxxService" registry="basic"/>

猜你喜欢

转载自blog.csdn.net/u012411159/article/details/123186166