本文将讲述基于已经搭建好的dubbo以及zookeeper,创建服务的生产者,并注册到zookeeper。
1、环境约束
- win10 64为操作系统
- idea2018.1.5
- maven-3.0.5
- jdk-8u162-windows-x64
2、软件下载
百度网盘:
链接:https://pan.baidu.com/s/1gfnI8NqUYgYK1g0ULGIV2w
提取码:q9pl
3、前提约束
- zookeeper以及dubbo已经安装并启动
- 将本专辑中的 《03 创建一个普通maven项目》做完毕
4、创建一个新的模块fbs-service,步骤如下:
创建fbs-service模块
在pom.xml中添加依赖:
<dependency>
<groupId>net.wanho.fenbushi</groupId>
<artifactId>fbs-interface</artifactId>
&l