实现目标
使用dubbo实现每个服务互相远程调用

ssm实现
在每个服务中添加:
com.alibaba
dubbo
2.5.3
org.springframework
spring
org.apache.zookeeper
zookeeper
3.4.6
com.github.sgroschupf
zkclient
0.1

dubbo-consumer.xml:
dubbo-provider.xml:
在项目中导入以上配置文件(我是在springmvc.xml中导入的):
同上:

dubbo-consumer.xml:
dubbo-provider.xml:
在项目中导入以上配置文件(我是在springmvc.xml中导入的):
在启动两个服务之前先启动zookeeper服务 和 dubbo的管理界面