# dubbo-demo
**Repository Path**: sambrave/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**: 0
- **Forks**: 0
- **Created**: 2016-08-04
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## spring + dubbo接口简单示例,maven + intellj构建
服务端: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)mvn jetty:run 或
* (dubbo-server) 运行com.fengjx.main.Provider的main方法
3、启动客户端,调用dubbo服务(两种方法)
* 运行单元测试:com.fengjx.dubbo.service.HelloServiceConsumerTest 或`
* 运行com.fengjx.main.Consumer的main方法