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 安吉尔站(天使站),位于伊斯灵顿区。

伦敦地铁路线图.pdf

SpringCloud版本兼容性

https://start.spring.io/actuator/info

  1. {
  2. "git": {
  3. "branch": "71b968654ec19a473b8530ee0d634b123b7b7be8",
  4. "commit": {
  5. "id": "71b9686",
  6. "time": "2020-09-16T09:26:47Z"
  7. }
  8. },
  9. "build": {
  10. "version": "0.0.1-SNAPSHOT",
  11. "artifact": "start-site",
  12. "versions": {
  13. "spring-boot": "2.3.3.RELEASE",
  14. "initializr": "0.9.2-SNAPSHOT"
  15. },
  16. "name": "start.spring.io website",
  17. "time": "2020-09-16T09:28:28.980Z",
  18. "group": "io.spring.start"
  19. },
  20. "bom-ranges": {
  21. "azure": {
  22. "2.0.10": "Spring Boot >=2.0.0.RELEASE and <2.1.0.RELEASE",
  23. "2.1.10": "Spring Boot >=2.1.0.RELEASE and <2.2.0.M1",
  24. "2.2.4": "Spring Boot >=2.2.0.M1 and <2.3.0.M1",
  25. "2.3.3": "Spring Boot >=2.3.0.M1"
  26. },
  27. "codecentric-spring-boot-admin": {
  28. "2.0.6": "Spring Boot >=2.0.0.M1 and <2.1.0.M1",
  29. "2.1.6": "Spring Boot >=2.1.0.M1 and <2.2.0.M1",
  30. "2.2.4": "Spring Boot >=2.2.0.M1 and <2.3.0.M1",
  31. "2.3.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1"
  32. },
  33. "solace-spring-boot": {
  34. "1.0.0": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1",
  35. "1.1.0": "Spring Boot >=2.3.0.M1"
  36. },
  37. "solace-spring-cloud": {
  38. "1.0.0": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1",
  39. "1.1.1": "Spring Boot >=2.3.0.M1"
  40. },
  41. "spring-cloud": {
  42. "Finchley.M2": "Spring Boot >=2.0.0.M3 and <2.0.0.M5",
  43. "Finchley.M3": "Spring Boot >=2.0.0.M5 and <=2.0.0.M5",
  44. "Finchley.M4": "Spring Boot >=2.0.0.M6 and <=2.0.0.M6",
  45. "Finchley.M5": "Spring Boot >=2.0.0.M7 and <=2.0.0.M7",
  46. "Finchley.M6": "Spring Boot >=2.0.0.RC1 and <=2.0.0.RC1",
  47. "Finchley.M7": "Spring Boot >=2.0.0.RC2 and <=2.0.0.RC2",
  48. "Finchley.M9": "Spring Boot >=2.0.0.RELEASE and <=2.0.0.RELEASE",
  49. "Finchley.RC1": "Spring Boot >=2.0.1.RELEASE and <2.0.2.RELEASE",
  50. "Finchley.RC2": "Spring Boot >=2.0.2.RELEASE and <2.0.3.RELEASE",
  51. "Finchley.SR4": "Spring Boot >=2.0.3.RELEASE and <2.0.999.BUILD-SNAPSHOT",
  52. "Finchley.BUILD-SNAPSHOT": "Spring Boot >=2.0.999.BUILD-SNAPSHOT and <2.1.0.M3",
  53. "Greenwich.M1": "Spring Boot >=2.1.0.M3 and <2.1.0.RELEASE",
  54. "Greenwich.SR6": "Spring Boot >=2.1.0.RELEASE and <2.1.18.BUILD-SNAPSHOT",
  55. "Greenwich.BUILD-SNAPSHOT": "Spring Boot >=2.1.18.BUILD-SNAPSHOT and <2.2.0.M4",
  56. "Hoxton.SR8": "Spring Boot >=2.2.0.M4 and <2.3.5.BUILD-SNAPSHOT",
  57. "Hoxton.BUILD-SNAPSHOT": "Spring Boot >=2.3.5.BUILD-SNAPSHOT and <2.4.0.M1",
  58. "2020.0.0-M3": "Spring Boot >=2.4.0.M1 and <=2.4.0.M1",
  59. "2020.0.0-SNAPSHOT": "Spring Boot >=2.4.0.M2"
  60. },
  61. "spring-cloud-alibaba": {
  62. "2.2.1.RELEASE": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1"
  63. },
  64. "spring-cloud-services": {
  65. "2.0.3.RELEASE": "Spring Boot >=2.0.0.RELEASE and <2.1.0.RELEASE",
  66. "2.1.7.RELEASE": "Spring Boot >=2.1.0.RELEASE and <2.2.0.RELEASE",
  67. "2.2.3.RELEASE": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1"
  68. },
  69. "spring-statemachine": {
  70. "2.0.0.M4": "Spring Boot >=2.0.0.RC1 and <=2.0.0.RC1",
  71. "2.0.0.M5": "Spring Boot >=2.0.0.RC2 and <=2.0.0.RC2",
  72. "2.0.1.RELEASE": "Spring Boot >=2.0.0.RELEASE"
  73. },
  74. "vaadin": {
  75. "10.0.17": "Spring Boot >=2.0.0.M1 and <2.1.0.M1",
  76. "14.3.6": "Spring Boot >=2.1.0.M1 and <2.4.0-M1"
  77. },
  78. "wavefront": {
  79. "2.0.1": "Spring Boot >=2.1.0.RELEASE"
  80. }
  81. },
  82. "dependency-ranges": {
  83. "okta": {
  84. "1.2.1": "Spring Boot >=2.1.2.RELEASE and <2.2.0.M1",
  85. "1.4.0": "Spring Boot >=2.2.0.M1 and <2.4.0-M1"
  86. },
  87. "mybatis": {
  88. "2.0.1": "Spring Boot >=2.0.0.RELEASE and <2.1.0.RELEASE",
  89. "2.1.3": "Spring Boot >=2.1.0.RELEASE and <2.4.0-M1"
  90. },
  91. "geode": {
  92. "1.2.9.RELEASE": "Spring Boot >=2.2.0.M5 and <2.3.0.M1",
  93. "1.3.3.RELEASE": "Spring Boot >=2.3.0.M1 and <2.4.0-M1",
  94. "1.4.0-M2": "Spring Boot >=2.4.0-M1"
  95. },
  96. "camel": {
  97. "2.22.4": "Spring Boot >=2.0.0.M1 and <2.1.0.M1",
  98. "2.25.2": "Spring Boot >=2.1.0.M1 and <2.2.0.M1",
  99. "3.3.0": "Spring Boot >=2.2.0.M1 and <2.3.0.M1",
  100. "3.5.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1"
  101. },
  102. "open-service-broker": {
  103. "2.1.3.RELEASE": "Spring Boot >=2.0.0.RELEASE and <2.1.0.M1",
  104. "3.0.4.RELEASE": "Spring Boot >=2.1.0.M1 and <2.2.0.M1",
  105. "3.1.1.RELEASE": "Spring Boot >=2.2.0.M1 and <2.4.0-M1"
  106. }
  107. }
  108. }

■ SpringBoot版本选择

以“Hoxton.SR8”版本为例:

  1. 查看SpringCloud版本兼容信息。

https://start.spring.io/actuator/info

  1. 查看SpringCloud官网推荐。

https://spring.io/projects/spring-cloud#learn
image.png
之后进入链接:
https://docs.spring.io/spring-cloud/docs/Hoxton.SR8/reference/html
image.png

  1. 结论。

从以上信息可以确认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+ |