• 为springboot找到合适的springcloud版本和springcloud alibaba版本


    设 springboot.version = 2.5.6

    1.找到springcloud的版本

    访问https://start.spring.io/actuator/info如下

    {
        "git": {
            "branch": "0402fcb93f742eb61af3cbc378c26b798cc13661", 
            "commit": {
                "id": "0402fcb", 
                "time": "2022-08-02T15:23:47Z"
            }
        }, 
        "build": {
            "version": "0.0.1-SNAPSHOT", 
            "artifact": "start-site", 
            "versions": {
                "spring-boot": "2.7.2", 
                "initializr": "0.13.0-SNAPSHOT"
            }, 
            "name": "start.spring.io website", 
            "time": "2022-08-02T15:25:54.072Z", 
            "group": "io.spring.start"
        }, 
        "bom-ranges": {
            "codecentric-spring-boot-admin": {
                "2.4.3": "Spring Boot >=2.3.0.M1 and <2.5.0-M1", 
                "2.5.6": "Spring Boot >=2.5.0.M1 and <2.6.0-M1", 
                "2.6.8": "Spring Boot >=2.6.0.M1 and <2.7.0-M1", 
                "2.7.3": "Spring Boot >=2.7.0.M1 and <3.0.0-M1", 
                "3.0.0-M4": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"
            }, 
            "solace-spring-boot": {
                "1.1.0": "Spring Boot >=2.3.0.M1 and <2.6.0-M1", 
                "1.2.1": "Spring Boot >=2.6.0.M1 and <2.7.0-M1"
            }, 
            "solace-spring-cloud": {
                "1.1.1": "Spring Boot >=2.3.0.M1 and <2.4.0-M1", 
                "2.1.0": "Spring Boot >=2.4.0.M1 and <2.6.0-M1", 
                "2.3.0": "Spring Boot >=2.6.0.M1 and <2.7.0-M1"
            }, 
            "spring-cloud": {
                "Hoxton.SR12": "Spring Boot >=2.2.0.RELEASE and <2.4.0.M1", 
                "2020.0.6": "Spring Boot >=2.4.0.M1 and <2.6.0-M1", 
                "2021.0.0-M1": "Spring Boot >=2.6.0-M1 and <2.6.0-M3", 
                "2021.0.0-M3": "Spring Boot >=2.6.0-M3 and <2.6.0-RC1", 
                "2021.0.0-RC1": "Spring Boot >=2.6.0-RC1 and <2.6.1", 
                "2021.0.3": "Spring Boot >=2.6.1 and <3.0.0-M1", 
                "2022.0.0-M1": "Spring Boot >=3.0.0-M1 and <3.0.0-M2", 
                "2022.0.0-M2": "Spring Boot >=3.0.0-M2 and <3.0.0-M3", 
                "2022.0.0-M3": "Spring Boot >=3.0.0-M3 and <3.0.0-M4", 
                "2022.0.0-M4": "Spring Boot >=3.0.0-M4 and <3.1.0-M1"
            }, 
            "spring-cloud-azure": {
                "4.3.0": "Spring Boot >=2.5.0.M1 and <3.0.0-M1"
            }, 
            "spring-cloud-gcp": {
                "2.0.11": "Spring Boot >=2.4.0-M1 and <2.6.0-M1", 
                "3.3.0": "Spring Boot >=2.6.0-M1 and <2.7.0-M1"
            }, 
            "spring-cloud-services": {
                "2.3.0.RELEASE": "Spring Boot >=2.3.0.RELEASE and <2.4.0-M1", 
                "2.4.1": "Spring Boot >=2.4.0-M1 and <2.5.0-M1", 
                "3.3.0": "Spring Boot >=2.5.0-M1 and <2.6.0-M1", 
                "3.4.0": "Spring Boot >=2.6.0-M1 and <2.7.0-M1", 
                "3.5.0": "Spring Boot >=2.7.0-M1 and <3.0.0-M1"
            }, 
            "spring-geode": {
                "1.3.12.RELEASE": "Spring Boot >=2.3.0.M1 and <2.4.0-M1", 
                "1.4.13": "Spring Boot >=2.4.0-M1 and <2.5.0-M1", 
                "1.5.14": "Spring Boot >=2.5.0-M1 and <2.6.0-M1", 
                "1.6.10": "Spring Boot >=2.6.0-M1 and <2.7.0-M1", 
                "1.7.2": "Spring Boot >=2.7.0-M1 and <3.0.0-M1", 
                "2.0.0-M4": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"
            }, 
            "spring-shell": {
                "2.1.0": "Spring Boot >=2.7.0 and <3.0.0-M1"
            }, 
            "vaadin": {
                "14.8.13": "Spring Boot >=2.1.0.RELEASE and <2.6.0-M1", 
                "23.1.4": "Spring Boot >=2.6.0-M1 and <2.8.0-M1"
            }, 
            "wavefront": {
                "2.0.2": "Spring Boot >=2.1.0.RELEASE and <2.4.0-M1", 
                "2.1.1": "Spring Boot >=2.4.0-M1 and <2.5.0-M1", 
                "2.2.2": "Spring Boot >=2.5.0-M1 and <2.7.0-M1", 
                "2.3.0": "Spring Boot >=2.7.0-M1 and <3.0.0-M1"
            }
        }, 
        "dependency-ranges": {
            "native": {
                "0.9.0": "Spring Boot >=2.4.3 and <2.4.4", 
                "0.9.1": "Spring Boot >=2.4.4 and <2.4.5", 
                "0.9.2": "Spring Boot >=2.4.5 and <2.5.0-M1", 
                "0.10.0": "Spring Boot >=2.5.0-M1 and <2.5.2", 
                "0.10.1": "Spring Boot >=2.5.2 and <2.5.3", 
                "0.10.2": "Spring Boot >=2.5.3 and <2.5.4", 
                "0.10.3": "Spring Boot >=2.5.4 and <2.5.5", 
                "0.10.4": "Spring Boot >=2.5.5 and <2.5.6", 
                "0.10.5": "Spring Boot >=2.5.6 and <2.5.9", 
                "0.10.6": "Spring Boot >=2.5.9 and <2.6.0-M1", 
                "0.11.0-M1": "Spring Boot >=2.6.0-M1 and <2.6.0-RC1", 
                "0.11.0-M2": "Spring Boot >=2.6.0-RC1 and <2.6.0", 
                "0.11.0-RC1": "Spring Boot >=2.6.0 and <2.6.1", 
                "0.11.0": "Spring Boot >=2.6.1 and <2.6.2", 
                "0.11.1": "Spring Boot >=2.6.2 and <2.6.3", 
                "0.11.2": "Spring Boot >=2.6.3 and <2.6.4", 
                "0.11.3": "Spring Boot >=2.6.4 and <2.6.6", 
                "0.11.5": "Spring Boot >=2.6.6 and <2.7.0-M1", 
                "0.12.0": "Spring Boot >=2.7.0-M1 and <2.7.1", 
                "0.12.1": "Spring Boot >=2.7.1 and <3.0.0-M1"
            }, 
            "okta": {
                "1.4.0": "Spring Boot >=2.2.0.RELEASE and <2.4.0-M1", 
                "1.5.1": "Spring Boot >=2.4.0-M1 and <2.4.1", 
                "2.0.1": "Spring Boot >=2.4.1 and <2.5.0-M1", 
                "2.1.5": "Spring Boot >=2.5.0-M1 and <2.7.0-M1"
            }, 
            "mybatis": {
                "2.1.4": "Spring Boot >=2.1.0.RELEASE and <2.5.0-M1", 
                "2.2.2": "Spring Boot >=2.5.0-M1"
            }, 
            "camel": {
                "3.5.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1", 
                "3.10.0": "Spring Boot >=2.4.0.M1 and <2.5.0-M1", 
                "3.13.0": "Spring Boot >=2.5.0.M1 and <2.6.0-M1", 
                "3.17.0": "Spring Boot >=2.6.0.M1 and <2.7.0-M1", 
                "3.18.0": "Spring Boot >=2.7.0.M1 and <3.0.0-M1"
            }, 
            "picocli": {
                "4.6.3": "Spring Boot >=2.4.0.RELEASE and <3.0.0-M1"
            }, 
            "open-service-broker": {
                "3.2.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1", 
                "3.3.1": "Spring Boot >=2.4.0-M1 and <2.5.0-M1", 
                "3.4.1": "Spring Boot >=2.5.0-M1 and <2.6.0-M1", 
                "3.5.0": "Spring Boot >=2.6.0-M1 and <2.7.0-M1"
            }
        }
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121
    • 122
    • 123
    • 124
    • 125
    • 126
    • 127
    • 128
    • 129
    • 130
    • 131
    • 132
    • 133
    • 134
    • 135

    可以得知springcloud的版本应为:2020.0.6

    2.找到springcloud alibaba的版本

    访问:https://github.com/alibaba/spring-cloud-alibaba/wiki/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E

    从里面得知,自从Spring Boot 2.4前后是两个分水岭,springboot2.4之前采用springcloud alibaba 2.2.x 版本,在springboot2.4之后,也有不同的要求。
    如果 2.4.2 如果 springboot版本> 2.6.3, 那么对应的springcloud alibaba 为 对应的springcloud版本后缀+*
    在这里插入图片描述

    3结论

    springboot.version=2.5.6
    springcloud.version=2020.0.6
    springcloud alibaba.version=2021.1

  • 相关阅读:
    【Meetup预告】OpenMLDB+37手游:一键查收实时特征计算场景案例及进阶使用攻略
    LeetCode:两数之和
    js 死循环代码debug
    FPGA 按键控制串口发送
    【AI视野·今日CV 计算机视觉论文速览 第268期】Mon, 16 Oct 2023
    【Python基础】多值参数 || 计算多个数字的和 || 元组和字典的拆包 || 面向过程开发 || 面向对象基本概念:类和对象的关系、大驼峰命名法
    WEB自动化-04-Cypress 测试用例编写和组织
    拆离褶皱(Detachment Fold)
    Spring框架系列(8) - Spring IOC实现原理详解之Bean实例化(生命周期,循环依赖等)
    Rancher 系列文章-K3s Traefik MiddleWare 报错-Failed to create middleware keys
  • 原文地址:https://blog.csdn.net/dmw412724/article/details/126160151