SpringCloud(一):学习搭建分布式项目(入门)

SpringCloud(一):学习搭建分布式项目(入门)

一、技术选型

Spring Cloud Hoxton.SR8
Spring Boot 2.3.0.RELEASE

二、模块设计

springcloud父工程(Project)下初次带着3个子模块(Module) ------ pom
shop-common【封装的整体entity / 接口 / 公共配置等】 ------ jar
shop-user-807x【服务提供者】 ------- war
shop-product-808x【服务提供者】 ------- war
shop-order-809x【服务消费者】 ------- war
注:端口号分配是为后面集群预留。

在这里插入图片描述

三、开始搭建分布式项目

1.先创建一个父工程

在这里插入图片描述在这里插入图片描述

2.在父工程里面引入依赖

<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.nine.winfred</groupId>
    <artifactId>SpringCloud-Demo</artifactId>
    <packaging>pom</packaging>
    <version>1.0-SNAPSHOT</version>
    <modules>
        <module>shop-user</module>
        <module>shop-common</module>
        <module>shop-product</module>
        <module>shop-order</module>
    </modules>

    <properties>
        
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值