springcloud----介绍

springcloud官方 微服务架构

在这里插入图片描述

微服务架构(找的)

服务架构图

  • springcloud网址 : https://cloud.spring.io/spring-cloud-static/Hoxton.SR3/reference/html/spring-cloud.html
spring-cloud: 最新版
Release Train Version: Hoxton.SR3

推荐spring-boot的版本
Supported Boot Version: 2.2.5.RELEASE

查看版本依赖信息


父工程的 pom.xml

工程坐标:
<groupId>com.aqiang9.springcloud</groupId>
<artifactId>cloud2020</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>

未使用最新版本

<dependencyManagement>
  <dependencies>
      <!--spring boot 2.2.2.RELEASE -->
      <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-dependencies</artifactId>
          <version>2.2.2.RELEASE</version>
          <type>pom</type>
          <scope>import</scope>
      </dependency>
      <!-- spring cloud Hoxton.SR1-->
      <dependency>
          <groupId>org.springframework.cloud</groupId>
          <artifactId>spring-cloud-dependencies</artifactId>
          <version>Hoxton.SR1</version>
          <type>pom</type>
          <scope>import</scope>
      </dependency>
  <!-- Alibaba 组件的依赖管理 -->
      <dependency>
          <groupId>com.alibaba.cloud</groupId>
          <artifactId>spring-cloud-alibaba-dependencies</artifactId>
          <version>2.1.0.RELEASE</version>
          <type>pom</type>
          <scope>import</scope>
      </dependency>
  </dependencies>
</dependencyManagement>
<build>
   <plugins>
       <plugin>
           <groupId>org.springframework.boot</groupId>
           <artifactId>spring-boot-maven-plugin</artifactId>
           <configuration>
               <fork>true</fork>
               <addResources>true</addResources>
           </configuration>
       </plugin>
   </plugins>
</build>

并未引入有关数据库的相关依赖 ,学习与业务无关

建工程的5大步

1、建module
2、改 pom.xml
3、改 yml
4、主启动
5、测试


后面分模块实现

发布了119 篇原创文章 · 获赞 9 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/getchar97/article/details/105065499