示例消费者安装
安装:
git clone https://github.com/apache/dubbo.git
cd dubbo/dubbo-demo/dubbo-demo-xml
运行 dubbo-demo-xml-consumer 中的 org.apache.dubbo.demo.consumer.Application 请确保先启动 Provider,如果使用 Intellij Idea 请加上 -Djava.net.preferIPv4Stack=true
配置:
resources/spring/dubbo-consumer.xml
修改其中的dubbo:registry,替换成Provider提供的注册中心地址, 如:
<dubbo:registry address="zookeeper://127.0.0.1:2181"/>
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
最后修改 July 23, 2021: update metadata doc, add application level metadata info. (#876) (e71a2ba)