0
点赞
收藏
分享

微信扫一扫

《分布式微服务电商》-项目结构创建和提交到码云

 1.码云上初始化项目

《分布式微服务电商》-项目结构创建和提交到码云_xml

《分布式微服务电商》-项目结构创建和提交到码云_maven_02

《分布式微服务电商》-项目结构创建和提交到码云_maven_03
2.IDEA初始化项目

《分布式微服务电商》-项目结构创建和提交到码云_git_04 《分布式微服务电商》-项目结构创建和提交到码云_微服务_05

《分布式微服务电商》-项目结构创建和提交到码云_分布式_06

 3.创建项目MODULE
商品服务:

《分布式微服务电商》-项目结构创建和提交到码云_微服务_07

《分布式微服务电商》-项目结构创建和提交到码云_git_08

《分布式微服务电商》-项目结构创建和提交到码云_git_09

《分布式微服务电商》-项目结构创建和提交到码云_maven_10

《分布式微服务电商》-项目结构创建和提交到码云_xml_11
同上,依次创建仓储服务、订单服务、优惠券服务、用户服务

 《分布式微服务电商》-项目结构创建和提交到码云_git_12

4.添加聚合服务

<?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.itxiongmao.goshop</groupId>
<artifactId>goshop</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>goshop</name>
<description>商城聚合服务</description>

<modules>
<module>goshop-order</module>
<module>goshop-member</module>
<module>goshop-product</module>
<module>goshop-ware</module>
<module>goshop-coupon</module>
</modules>


</project>

《分布式微服务电商》-项目结构创建和提交到码云_git_13 《分布式微服务电商》-项目结构创建和提交到码云_微服务_14

5.忽略git需要提交的文件

《分布式微服务电商》-项目结构创建和提交到码云_分布式_15
 

**/mvnw
**/mvnw.cmd
**/.mvn
**/target/
.idea
**/.gitignore

提交到git中只提交,源码、配置文件

 《分布式微服务电商》-项目结构创建和提交到码云_git_16

6.IDEA安装码云插件

《分布式微服务电商》-项目结构创建和提交到码云_maven_17

《分布式微服务电商》-项目结构创建和提交到码云_git_18 《分布式微服务电商》-项目结构创建和提交到码云_maven_19

《分布式微服务电商》-项目结构创建和提交到码云_xml_20

《分布式微服务电商》-项目结构创建和提交到码云_分布式_21

7.初始化电商项目数据库(获取源码+wx: haiwabbc2)
创建各个微服务的数据库报并导入SQL

《分布式微服务电商》-项目结构创建和提交到码云_分布式_22


举报

相关推荐

0 条评论