# dubbo-demo
**Repository Path**: websterlu/dubbo-demo
## Basic Information
- **Project Name**: dubbo-demo
- **Description**: dubbo接口简单示例,maven + intellj构建
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2016-06-02
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## spring + dubbo接口简单示例,maven + eclipse构建
服务端:dubbo-server
客户端:dubbo-client
dubbo接口官网:[dubbo](http://alibaba.github.io/dubbo-doc-static/Home-zh.htm)
### 运行demo
1、启动zookeeper
(参考: [Zookeeper注册中心安装](http://alibaba.github.io/dubbo-doc-static/Administrator+Guide-zh.htm#AdministratorGuide-zh-Zookeeper%E6%B3%A8%E5%86%8C%E4%B8%AD%E5%BF%83%E5%AE%89%E8%A3%85) )
2、启动dubbo服务(两种方法)`
* (dubbo-server) 建议运行com.luwenbin.main.Main的main方法
* 或者运行com.luwenbin.main.Provider的main方法,这种方式不建议使用
3、启动客户端,调用dubbo服务(两种方法)
* 运行单元测试:com.luwenbin.dubbo.service.HelloServiceConsumerTest 或`
* 运行com.luwenbin.main.Consumer的main方法