与 aliBaBa 2021.0.4.0 相近的spring cloud 稳定版本是 2021.0.5 相应的boot 版本是 2.6.13
首先确定AliBaba的版本
根据版本分支说明
版本说明 · alibaba/spring-cloud-alibaba Wiki (github.com)
2022.x 分支
适配 Spring Boot 3.0,Spring Cloud 2022.x 版本及以上的 Spring Cloud Alibaba 版本按从新到旧排列如下表(最新版本用*标记): (注意,该分支 Spring Cloud Alibaba 版本命名方式进行了调整,未来将对应 Spring Cloud 版本,前三位为 Spring Cloud 版本,最后一位为扩展版本,比如适配 Spring Cloud 2022.0.0 版本对应的 Spring Cloud Alibaba 第一个版本为:2022.0.0.0,第个二版本为:2022.0.0.1,依此类推)
Spring Cloud Alibaba Version | Spring Cloud Version | Spring Boot Version |
---|---|---|
2022.0.0.0-RC* |
Spring Cloud 2022.0.0 |
3.0.0 |
2021.x 分支
适配 Spring Boot 2.4,Spring Cloud 2021.x 版本及以上的 Spring Cloud Alibaba 版本按从新到旧排列如下表(最新版本用*标记):
Spring Cloud Alibaba Version | Spring Cloud Version | Spring Boot Version |
---|---|---|
2021.0.4.0* |
Spring Cloud 2021.0.4 |
2.6.11 |
2021.0.1.0 |
Spring Cloud 2021.0.1 |
2.6.3 |
2021.1 |
Spring Cloud 2020.0.1 |
2.4.2 |
与 aliBaBa 2021.0.4.0 相近的spring cloud 稳定版本是 2021.0.5 相应的boot 版本是 2.6.13
<?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.hztech</groupId> <artifactId>springclound</artifactId> <version>1.0-SNAPSHOT</version> <modules> <module>provider-payment8001</module> <module>customer-order80</module> <module>cloud-api-common</module> <module>provider-payment8002</module> </modules> <packaging>pom</packaging> <!--统一的jar包版本管理--> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <junit.version>4.12</junit.version> <log4j.verison>1.2.17</log4j.verison> <lombok.version>1.16.18</lombok.version> <mysql.version>5.1.47</mysql.version> <druid.version>1.1.10</druid.version> <mybatis.spring.boot.version>1.3.0</mybatis.spring.boot.version> <spring-boot.version>2.6.13</spring-boot.version> <spring-cloud.version>2021.0.5</spring-cloud.version> <spring-cloud-alibaba.version>2021.0.4.0</spring-cloud-alibaba.version> <!-- 这个版本组合 支持 hystrix <spring-boot.version>2.2.2.RELEASE</spring-boot.version> <spring-cloud.version>Hoxton.SR8</spring-cloud.version> <spring-cloud-alibaba.version>2.1.0.RELEASE</spring-cloud-alibaba.version> --> </properties> <!--子模块继承之后,提供作用:锁定版本+子modlue不用写groupId和version--> <dependencyManagement> <dependencies> <!--springboot version 2.2.2 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <!-- <version>2.2.2.RELEASE</version> --> <version>${spring-boot.version}</version> <type>pom</type> <scope>import</scope> </dependency> <!--springcloud version Hoxton.SR1--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>${spring-cloud.version} </version> <!--Hoxton.SR1 Hoxton.SR8 --> <type>pom</type> <scope>import</scope> </dependency> <!--springcloud alibb version 2.1.0--> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-alibaba-dependencies</artifactId> <!--<version>2.1.0.RELEASE</version> --> <version>${spring-cloud-alibaba.version}</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>${mysql.version}</version> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>${druid.version}</version> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <version>${druid.version}</version> </dependency> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>${mybatis.spring.boot.version}</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>${lombok.version}</version> </dependency> </dependencies> </dependencyManagement> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <addResources>true</addResources> </configuration> </plugin> </plugins> </build> </project>
标签:spring,boot,Boot,Alibaba,cloud,版本,Spring,Cloud From: https://www.cnblogs.com/hztech/p/17130378.html