zoukankan      html  css  js  c++  java
  • Spring Cloud Alibaba (一): SpringCloud与SpringBoot版本选型

    前言

      近年SpringCloud与SpringBoot更新迭代非常频繁,导致我们对两者的版本选型非常的困难。若是版本选择有问题, 会导致开发中调试兼容性占用非常多的得必要时间。

    SpringCloud版本介绍

      Spring Cloud是一个由众多独立子项目组成的大型综合项目,每个子项目有不同的发行节奏,都维护着自己的发布版本号。Spring Cloud通过一个资源清单BOM(Bill of Materials)来管理每个版本的子项目清单。为避免与子项目的发布号混淆,所以没有采用版本号的方式,而是通过命名的方式。

      这些版本名称的命名方式采用了伦敦地铁站的名称,同时根据字母表的顺序来对应版本时间顺序,比如:最早的Release版本:Angel,第二个Release版本:Brixton,然后是Camden、Dalston、Edgware、Finchley、Greenwich、Hoxton,目前最新稳定版本是Hoxton SR3版。

    SpringCloud最新版本

    SpringCloud新版本

    SpringBoot版本介绍

       Spring发布的Dalston已于2018年12月31日宣布报废, SpringBoot1.5x也即将不在维护, Spring官方强烈建议升级SpringBoot2.0。Spring Boot 2.0要求Java 8为最低版本,也已经在Java9上进行过测试。

    SpringBoot最新版本

    SpringBoot版本

    SpringCloud与SpringBoot版本选型

    查询版本对应关系: https://start.spring.io/actuator/info

    {
        "bom-ranges": {
            "azure": {
                "2.0.10": "Spring Boot >=2.0.0.RELEASE and <2.1.0.RELEASE",
                "2.1.7": "Spring Boot >=2.1.0.RELEASE and <2.2.0.M1",
                "2.2.0": "Spring Boot >=2.2.0.M1"
            },
            "codecentric-spring-boot-admin": {
                "2.0.6": "Spring Boot >=2.0.0.M1 and <2.1.0.M1",
                "2.1.6": "Spring Boot >=2.1.0.M1 and <2.2.0.M1",
                "2.2.1": "Spring Boot >=2.2.0.M1"
            },
            "spring-cloud": {
                "Finchley.BUILD-SNAPSHOT": "Spring Boot >=2.0.999.BUILD-SNAPSHOT and <2.1.0.M3",
                "Finchley.M2": "Spring Boot >=2.0.0.M3 and <2.0.0.M5",
                "Finchley.M3": "Spring Boot >=2.0.0.M5 and <=2.0.0.M5",
                "Finchley.M4": "Spring Boot >=2.0.0.M6 and <=2.0.0.M6",
                "Finchley.M5": "Spring Boot >=2.0.0.M7 and <=2.0.0.M7",
                "Finchley.M6": "Spring Boot >=2.0.0.RC1 and <=2.0.0.RC1",
                "Finchley.M7": "Spring Boot >=2.0.0.RC2 and <=2.0.0.RC2",
                "Finchley.M9": "Spring Boot >=2.0.0.RELEASE and <=2.0.0.RELEASE",
                "Finchley.RC1": "Spring Boot >=2.0.1.RELEASE and <2.0.2.RELEASE",
                "Finchley.RC2": "Spring Boot >=2.0.2.RELEASE and <2.0.3.RELEASE",
                "Finchley.SR4": "Spring Boot >=2.0.3.RELEASE and <2.0.999.BUILD-SNAPSHOT",
                "Greenwich.BUILD-SNAPSHOT": "Spring Boot >=2.1.14.BUILD-SNAPSHOT and <2.2.0.M4",
                "Greenwich.M1": "Spring Boot >=2.1.0.M3 and <2.1.0.RELEASE",
                "Greenwich.SR5": "Spring Boot >=2.1.0.RELEASE and <2.1.14.BUILD-SNAPSHOT",
                "Hoxton.BUILD-SNAPSHOT": "Spring Boot >=2.3.0.BUILD-SNAPSHOT",
                "Hoxton.SR3": "Spring Boot >=2.2.0.M4 and <2.3.0.BUILD-SNAPSHOT"
            },
            "spring-cloud-alibaba": {
                "2.2.0.RELEASE": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1"
            },
            "spring-cloud-services": {
                "2.0.3.RELEASE": "Spring Boot >=2.0.0.RELEASE and <2.1.0.RELEASE",
                "2.1.7.RELEASE": "Spring Boot >=2.1.0.RELEASE and <2.2.0.RELEASE",
                "2.2.3.RELEASE": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1"
            },
            "spring-statemachine": {
                "2.0.0.M4": "Spring Boot >=2.0.0.RC1 and <=2.0.0.RC1",
                "2.0.0.M5": "Spring Boot >=2.0.0.RC2 and <=2.0.0.RC2",
                "2.0.1.RELEASE": "Spring Boot >=2.0.0.RELEASE"
            },
            "vaadin": {
                "10.0.17": "Spring Boot >=2.0.0.M1 and <2.1.0.M1",
                "14.1.20": "Spring Boot >=2.1.0.M1"
            }
        },
        "build": {
            "artifact": "start-site",
            "group": "io.spring.start",
            "name": "start.spring.io website",
            "time": "2020-03-19T13:45:29.062Z",
            "version": "0.0.1-SNAPSHOT",
            "versions": {
                "initializr": "0.9.0.BUILD-SNAPSHOT",
                "spring-boot": "2.2.5.RELEASE"
            }
        },
        "dependency-ranges": {
            "camel": {
                "2.22.4": "Spring Boot >=2.0.0.M1 and <2.1.0.M1",
                "2.24.3": "Spring Boot >=2.1.0.M1 and <2.2.0.M1",
                "3.1.0": "Spring Boot >=2.2.0.M1"
            },
            "geode": {
                "1.2.5.RELEASE": "Spring Boot >=2.2.0.M5 and <2.3.0.M1",
                "1.3.0.BUILD-SNAPSHOT": "Spring Boot >=2.3.0.BUILD-SNAPSHOT",
                "1.3.0.M2": "Spring Boot >=2.3.0.M1 and <2.3.0.BUILD-SNAPSHOT"
            },
            "mybatis": {
                "2.0.1": "Spring Boot >=2.0.0.RELEASE and <2.1.0.RELEASE",
                "2.1.2": "Spring Boot >=2.1.0.RELEASE"
            },
            "okta": {
                "1.2.1": "Spring Boot >=2.1.2.RELEASE and <2.2.0.M1",
                "1.4.0": "Spring Boot >=2.2.0.M1"
            },
            "solace": {
                "3.1.0": "Spring Boot >=2.1.0.RELEASE and <2.2.0.M1",
                "3.2.0": "Spring Boot >=2.2.0.M1"
            }
        },
        "git": {
            "branch": "6a8d5ce9a63e30db3fa1c23c64a6b7cef2072c71",
            "commit": {
                "id": "6a8d5ce",
                "time": "2020-03-19T13:43:47Z"
            }
        }
    }
    

    SpringCloud对应SpringBoot版本

    SpringCloud若选用: Hoxton.SR3

    支持的SpringBoot版本: 2.2.5.RELEASE

    SpringCloud官网:https://spring.io/projects/spring-cloud

    image-20200320072012808

    版本确认

  • 相关阅读:
    13_函数的基本使用简介
    12_goto语句的使用
    11_for语句的使用
    10_switch语句的使用
    09_if条件语句的使用
    08_类型别名(类型声明)
    day-32网络编程
    day-31网络编程
    day-30网络编程
    day-29元类、异常处理
  • 原文地址:https://www.cnblogs.com/chinda/p/12529358.html
Copyright © 2011-2022 走看看