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包
项目结构 导包
网友评论