spring boot 和cloud 版本升级

  • Post author:
  • Post category:其他


spring boot 和cloud 版本对应

背景:原来一直用的版本是Hoxton.SR12 +2.3.10.RELEASE(SR12一路升,几乎没有影响,不需要测试,但是换大版本就有点担心)

去年2022年底黑鸭子报漏洞把springboot,cloud一锅端了,每次发版都要申请豁免好多jar包,真的头大了,想想还在用好几年前的版本,确实不太合适,下定决心升一下版本。



1

具体对应关系可以通过官方给的网址来获取:https://start.spring.io/actuator/info

 "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.5":"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.0.0-M5",
            "2022.0.0-M5":"Spring Boot >=3.0.0-M5 and <3.0.0-RC1",
            "2022.0.0-RC1":"Spring Boot >=3.0.0-RC1 and <3.0.0-RC2",
            "2022.0.0-RC2":"Spring Boot >=3.0.0-RC2 and <3.0.0",
            "2022.0.1":"Spring Boot >=3.0.0 and <3.1.0-M1"
        }



2

对应关系 https://spring.io/projects/spring-cloud 往下拉

cloud boot java
2022.0.x aka Kilburn 3.0.x jdk17
2021.0.x aka Jubilee 2.6.x, 2.7.x (Starting with 2021.0.3)
2020.0.x aka Ilford 2.4.x, 2.5.x (Starting with 2020.0.3)
Hoxton 2.2.x, 2.3.x (Starting with SR5)
Greenwich 2.1.x
Finchley 2.0.x
Edgware 1.5.x
Dalston 1.5.x



3 GA版本

cloud的GA版本是 https://spring.io/projects/spring-cloud#learn

  • 2022.0.1
  • 2021.0.5
  • 2020.0.6

boot的GA版本 https://spring.io/projects/spring-boot#learn

  • 3.0.2
  • 2.7.8
  • 2.6.14
  • 2.5.14
  • 2.4.13

居然Hoxton 已经不是GA了(Hoxton 2021/06/30 停止维护 ,重大bug延迟维护到2022/02/28),2.3.10.RELEASE也不是了

这些都被黑鸭子报漏洞了

倾向于springcloud升级到 2021.0.5 这个GA版本

https://docs.spring.io/spring-cloud/docs/2021.0.5/reference/html/

Release Train Version: 2021.0.5
Supported Boot Version: 2.6.13

推荐的boot版本是2.6.13,

版本 发布时间 停止维护时间 停止商业支持
2.7.0 2022-05-19 2023-05-18 2024-08-22
2.6.0 2021-12-17 2022-11-24 2024-02-24
2.5.x 2021-05-20 已停止 2023-08-24
2.4.x 2020-11-12 已停止 2023-02-23
2.3.x 2020-05-15 已停止 2022-08-20
2.2.x 2019-10-16 已停止 已停止
2.1.x 2018-10-10 已停止 已停止
2.0.x 2018-03-01 已停止 已停止
1.5.x 2017-01-30 已停止 已停止

黑鸭子里面的springboot安全版本是

  • 2.5.12+ 已经不支持了
  • 2.6.6+ 也停止维护了
  • 2.7.0+ 感觉也快停止维护了

所以最后暂时选择了升级到 2021.0.5+2.7.8 这样的GA版本



版权声明:本文为dzl84394原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。