How does SpringCloud choose a compatible SpringBoot version?

  The relevant concepts of SpringCloud are no longer here ~~ We all know that SpringCloud is just an architectural style, in fact, the realization of its specific functional parts is still based on SpringBoot. Let's take a look at the versions of SpringCloud and SpringBoot respectively:

1. SpringCloud version introduction

SpringCloud official website version

  The following is the version introduction of SpringCloud's official website. At present, the latest version is Hoxton SR3, we can see that there are Greenwich SR5 GAother versions of SpringCloud. How is the version of SpringCloud defined? What do the versions mean?

1.1 Origin of SpringCloud version number?

  The version number of SpringCloud is named according to the name of the London underground station in the United Kingdom, and the iteration letter is released by the analogy of the subway station name letter AZ.
  SpringCloud released the first version of the name is Angel, the second is Brixton...... because SpringCloud below contains a lot of small sub-projects, in order to avoid version conflicts with subprojects SpringCloud version, so do not use our common SpringCloud 数字式的版本号, when SpringCloud When the version of the version falls to a certain level, a service releaseversion will be released , generally abbreviated as SRX, for example, the current version SR3is Hoxtonthe third service releaseversion.
Insert picture description here

1.2 Small version of SpringCloud

version number Introduction
SR Service Release, Indicates the official version, SR1 indicates the first official version
GA Generally Available, Indicates stable version
SNAPSHOT Snapshot version, may change at any time
M MileStone, M1 indicates the first milestone version, generally marked as PRE at the same time, indicating the preview version

2. SpringBoot version introduction

  There is not much to say about the version number of SpringBoot. What we use is our common 数字式version number. The commonly used SpringBoot is now version 2.0 or higher.

3. SpringCloud and SpringBoot version adaptation issues

  At the beginning of the article, it is mentioned that the functional service of the SpringCloud microservice architecture style is still specifically implemented by SpringBoot. In order to avoid stepping on the pits related to version numbers in the development process, we must adapt the version numbers of the two technology stacks:

  If we are using the latest version of SpringCloud Hoxton SR3, the specific version of SpringBoot can be checked by the following operations:
first enter the official website address :
Insert picture description here
then click Reference Document:
Insert picture description here

  In the address of SpringCloud's official website , pull the page to the lower position to introduce the version number adaptation problem between SpringCloud and SpringBoot. If our SpringCloud uses Hoxtonversion, then SpringBoot must use 2.2.xversion.
Insert picture description here
  You can also check the matching of the version numbers of Spring Cloud and Spring Boot through the address :
Insert picture description here
after accessing this address, a string of unformatted json strings is returned. After formatting by the json formatting tool, you can also see which version number of Spring Boot. Adapt to the current Spring Cloud:

{
    "git": {
        "commit": {
            "time": "2020-03-19T13:43:47Z",
            "id": "6a8d5ce"
        },
        "branch": "6a8d5ce9a63e30db3fa1c23c64a6b7cef2072c71"
    },
    "build": {
        "version": "0.0.1-SNAPSHOT",
        "artifact": "start-site",
        "name": "start.spring.io website",
        "versions": {
            "initializr": "0.9.0.BUILD-SNAPSHOT",
            "spring-boot": "2.2.5.RELEASE"
        },
        "group": "io.spring.start",
        "time": "2020-03-19T13:45:29.062Z"
    },
    "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.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",
            "Finchley.BUILD-SNAPSHOT": "Spring Boot >=2.0.999.BUILD-SNAPSHOT and <2.1.0.M3",
            "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",
            "Greenwich.BUILD-SNAPSHOT": "Spring Boot >=2.1.14.BUILD-SNAPSHOT and <2.2.0.M4",
            /**
				Honton.SR3是我们目前SpringCloud的最新版本:SpringBoot的2.2.0及以上
				到2.3.0以下的版本号可以相适配
			*/
            "Hoxton.SR3": "Spring Boot >=2.2.0.M4 and <2.3.0.BUILD-SNAPSHOT",
            "Hoxton.BUILD-SNAPSHOT": "Spring Boot >=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"
        }
    },
    "dependency-ranges": {
        "okta": {
            "1.2.1": "Spring Boot >=2.1.2.RELEASE and <2.2.0.M1",
            "1.4.0": "Spring Boot >=2.2.0.M1"
        },
        "mybatis": {
            "2.0.1": "Spring Boot >=2.0.0.RELEASE and <2.1.0.RELEASE",
            "2.1.2": "Spring Boot >=2.1.0.RELEASE"
        },
        "geode": {
            "1.2.5.RELEASE": "Spring Boot >=2.2.0.M5 and <2.3.0.M1",
            "1.3.0.M2": "Spring Boot >=2.3.0.M1 and <2.3.0.BUILD-SNAPSHOT",
            "1.3.0.BUILD-SNAPSHOT": "Spring Boot >=2.3.0.BUILD-SNAPSHOT"
        },
        "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"
        },
        "solace": {
            "3.1.0": "Spring Boot >=2.1.0.RELEASE and <2.2.0.M1",
            "3.2.0": "Spring Boot >=2.2.0.M1"
        }
    }
}
Published 117 original articles · Like 57 · Visitors 10,000+

Guess you like

Origin blog.csdn.net/qq_43655835/article/details/104990596