SpringBoot版本
https://spring.io/projects/spring-boot
https://github.com/spring-projects/spring-boot/releases
注意:官方强烈建议升级到SpringBoot-2.X以上版本。
SpringCloud版本
https://spring.io/projects/spring-cloud
https://github.com/spring-projects/spring-cloud/wiki
| Release Train | Boot Version |
|---|---|
| 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 |
■ 版本说明
| Version | Type | Description |
|---|---|---|
| BUILD | 开发版 | 开发团队内部使用,不是很稳定 |
| GA | 稳定版 | General Availabotity,面向大众的可用的稳定版本 |
| PRE(M1、M2) | 里程碑版 | Milestone,主要是修复了一些BUG的版本,一个GA后通常有多个里程碑版 |
| SNAPSHOT | 快照版 | 代码可变的,可随时修改的 |
| RC | 候选发布版 | 该阶段的软件类似于最终版的一个发行观察期,基本只修复比较严重的BUG |
| SR | 正式发布版 | Service Release,表示正式版本 |
■ 命名规则
用英国伦敦地铁站的名称来命名,同时根据字母表顺序来对应版本时间顺序。
| 版本命名 | 描述 |
|---|---|
| Hoxton | 霍斯顿站 |
| Greenwich | 格林威治站,原皇家格林尼治天文台所在地,地球本初子午线的标界处,世界计算时间和经度的起点。 |
| Finchley | 芬奇利站 |
| Edgware | 艾奇韦尔站 |
| Dalston | 达尔斯顿站 |
| Camden | 卡姆登站 |
| Brixton | 布里克斯顿站 |
| Angel | 安吉尔站(天使站),位于伊斯灵顿区。 |
SpringCloud版本兼容性
https://start.spring.io/actuator/info
{"git": {"branch": "71b968654ec19a473b8530ee0d634b123b7b7be8","commit": {"id": "71b9686","time": "2020-09-16T09:26:47Z"}},"build": {"version": "0.0.1-SNAPSHOT","artifact": "start-site","versions": {"spring-boot": "2.3.3.RELEASE","initializr": "0.9.2-SNAPSHOT"},"name": "start.spring.io website","time": "2020-09-16T09:28:28.980Z","group": "io.spring.start"},"bom-ranges": {"azure": {"2.0.10": "Spring Boot >=2.0.0.RELEASE and <2.1.0.RELEASE","2.1.10": "Spring Boot >=2.1.0.RELEASE and <2.2.0.M1","2.2.4": "Spring Boot >=2.2.0.M1 and <2.3.0.M1","2.3.3": "Spring Boot >=2.3.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.4": "Spring Boot >=2.2.0.M1 and <2.3.0.M1","2.3.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1"},"solace-spring-boot": {"1.0.0": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1","1.1.0": "Spring Boot >=2.3.0.M1"},"solace-spring-cloud": {"1.0.0": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1","1.1.1": "Spring Boot >=2.3.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.SR6": "Spring Boot >=2.1.0.RELEASE and <2.1.18.BUILD-SNAPSHOT","Greenwich.BUILD-SNAPSHOT": "Spring Boot >=2.1.18.BUILD-SNAPSHOT and <2.2.0.M4","Hoxton.SR8": "Spring Boot >=2.2.0.M4 and <2.3.5.BUILD-SNAPSHOT","Hoxton.BUILD-SNAPSHOT": "Spring Boot >=2.3.5.BUILD-SNAPSHOT and <2.4.0.M1","2020.0.0-M3": "Spring Boot >=2.4.0.M1 and <=2.4.0.M1","2020.0.0-SNAPSHOT": "Spring Boot >=2.4.0.M2"},"spring-cloud-alibaba": {"2.2.1.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.3.6": "Spring Boot >=2.1.0.M1 and <2.4.0-M1"},"wavefront": {"2.0.1": "Spring Boot >=2.1.0.RELEASE"}},"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 and <2.4.0-M1"},"mybatis": {"2.0.1": "Spring Boot >=2.0.0.RELEASE and <2.1.0.RELEASE","2.1.3": "Spring Boot >=2.1.0.RELEASE and <2.4.0-M1"},"geode": {"1.2.9.RELEASE": "Spring Boot >=2.2.0.M5 and <2.3.0.M1","1.3.3.RELEASE": "Spring Boot >=2.3.0.M1 and <2.4.0-M1","1.4.0-M2": "Spring Boot >=2.4.0-M1"},"camel": {"2.22.4": "Spring Boot >=2.0.0.M1 and <2.1.0.M1","2.25.2": "Spring Boot >=2.1.0.M1 and <2.2.0.M1","3.3.0": "Spring Boot >=2.2.0.M1 and <2.3.0.M1","3.5.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1"},"open-service-broker": {"2.1.3.RELEASE": "Spring Boot >=2.0.0.RELEASE and <2.1.0.M1","3.0.4.RELEASE": "Spring Boot >=2.1.0.M1 and <2.2.0.M1","3.1.1.RELEASE": "Spring Boot >=2.2.0.M1 and <2.4.0-M1"}}}
■ SpringBoot版本选择
以“Hoxton.SR8”版本为例:
- 查看SpringCloud版本兼容信息。
https://start.spring.io/actuator/info
- 查看SpringCloud官网推荐。
https://spring.io/projects/spring-cloud#learn
之后进入链接:
https://docs.spring.io/spring-cloud/docs/Hoxton.SR8/reference/html
- 结论。
从以上信息可以确认SpringCloud官网推荐版本为“SpringBoot-2.3.3.RELEASE”。
■ 推荐版本
- Hoxton.SR1 | Component | Versioon | | —- | —- | | SpringCloud | Hoxton.SR1 | | SpringBoot | 2.2.2.RELEASE | | Spring Cloud Alibaba | 2.1.0.RELEASE | | JAVA | jdk-1.8.x | | Maven | 3.5+ | | MySQL | 5.7+ |
