Spring Cloud项目(一) springboot版本和cloud version的对应关系

SpringBoot 和 SpringCloud 版本大体对应(表粗为当前公司项目使用的版本)

spring-boot-starter-parent(Spring Boot) spring-cloud-dependencie (SpringCloud版本名称由伦敦地铁站)
1.2.x Angel版本
1.3.x Brixton版本
1.4.x Camden版本
1.5.2.RELEASE Dalston.RC1
1.5.2.RELEASE Dalston.RC1
1.5.16/20.RELEASE Edgware.RELEASE
>=2.0.0.M3 and <2.0.0.M5 Finchley.M2
pring Boot >=2.0.0.M5 and <=2.0.0.M5 Finchley.M3
Spring Boot >=2.0.0.M6 and <=2.0.0.M6 Finchley.M4
Spring Boot >=2.0.0.M7 and <=2.0.0.M7 Finchley.M5
Spring Boot >=2.0.0.RC1 and <=2.0.0.RC1 Finchley.M6
Spring Boot >=2.0.0.RC2 and <=2.0.0.RC2 Finchley.M7
Spring Boot >=2.0.0.RELEASE and <=2.0.0.RELEASE Finchley.M9
Spring Boot >=2.0.1.RELEASE and <2.0.2.RELEASE Finchley.RC1
Spring Boot >=2.0.2.RELEASE and <2.0.3.RELEASE Finchley.RC2
Spring Boot >=2.0.3.RELEASE and <2.0.999.BUILD-SNAPSHOT Finchley.SR4
Spring Boot >=2.0.999.BUILD-SNAPSHOT and <2.1.0.M3 Finchley.BUILD-SNAPSHOT
Spring Boot >=2.1.0.M3 and <2.1.0.RELEASE Greenwich.M1
Spring Boot >=2.1.0.RELEASE and <2.1.9.BUILD-SNAPSHOT Greenwich.SR2
Spring Boot >=2.1.9.BUILD-SNAPSHOT and <2.2.0.M4 Greenwich.BUILD-SNAPSHOT
Spring Boot >=2.2.0.M4 and <=2.2.0.M5 Hoxton.M2
Spring Boot >=2.2.0.BUILD-SNAPSHOT Hoxton.BUILD-SNAPSHOT

配置文件(pom.xml)对应如下:


<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.0modelVersion>
    <parent>
        <groupId>org.springframework.bootgroupId>
        <artifactId>spring-boot-starter-parentartifactId>
        <version>2.1.7.RELEASEversion> 
        <relativePath/> 
    parent>
    <groupId>com.examplegroupId>
    <artifactId>demoartifactId>
    <version>0.0.1-SNAPSHOTversion>
    <name>demoname>
    <description>Demo project for Spring Bootdescription>
    
     <properties>
        <project.build.sourceEncoding>UTF-8project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8project.reporting.outputEncoding>
        <java.version>1.8java.version>
        <spring-cloud.version>Greenwich.SR2spring-cloud.version> 
    properties>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloudgroupId>
                <artifactId>spring-cloud-dependenciesartifactId>
                <version>${spring-cloud.version}version> 
                <type>pomtype>
                <scope>importscope>
            dependency>
        dependencies>
    dependencyManagement>
  project>

注1.pom内部引用 则用 ${标签名} 来获取参数

你可能感兴趣的:(spring,cloud,springboot项目,spring,boot,Spring,Cloud)