3.搭建dubbo消费者工程

1.创建maven项目,jar包:“user-service-provider”--服务提供者

项目结构

2.创建maven项目,jar包:"order-service-customer"--服务消费者

项目结构

3.创建maven项目,jar包:"gmall-interface"--共用接口包;

    3.1将user和order中的公用接口,公用bean,复制到gmall-interface中。

    3.2 删除user和order中原有的接口和bean,在pom.xml文件中导入gmall-interface包

项目结构
导包

你可能感兴趣的:(3.搭建dubbo消费者工程)