1.码云新建仓库gulimall
2.IDEA配置git,并拉取代码
3.项目初始结构创建
依次创建每个服务,结构如图
gulimall-common : 微服务公共的依赖,bean,工具类
gulimall-coupon :优惠服务
gulimall-member:会员服务
gulimall-order: 订单服务
gulimall-product :商品服务
gulimall-ware :仓储服务
renren-fast :人人开发平台(后面导入)
renren-generator :人人逆向工程(后面导入)
复制一个pom文件到 gulimall项目下,聚合所有微服务
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.atguigu.gulimall</groupId>
<artifactId>gulimall</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>gulimall</name>
<description>聚合服务</description>
<packaging>pom</packaging>
<modules>
<module>gulimall-coupon</module>
<module>gulimall-member</module>
<module>gulimall-order</module>
<module>gulimall-product</module>
<module>gulimall-ware</module>
<module>renren-fast</module>
<module>renren-generator</module>
<module>gulimall-common</module>
<module>gulimall-common</module>
</modules>
</project>