一、描述
在实际开发中经常会使用到springCloud对应的springboot版本,如果版本不对应,会踩很多坑,如何去查找springcloud版本对应的springboot版本呢?
二、SpringBoot版本的选择
1、SpringBoot官网地址
百度直接搜索springboot,或者直接点击此链接https://spring.io/projects/spring-boot进入springboot官网。如下图:、
由图可知,SpringBoot官方目前最新最稳定版:2.5.4,如果单独使用SpringBoot的话,建议就可以选择官方指定的最新最稳定版。
如果SpringBoot项目需要与SpringCloud整合,就得看SpringCloud的版本需要适配SpringBoot的哪个版本了。接下来介绍SpringCloud版本的选择及springcloud对应的SpringBoot版本。
三、SpringCloud版本的选择
1、SpringCloud官网地址
百度直接搜索springcloud,或者直接点击此链接https://spring.io/projects/spring-cloud进入springcloud官网。如下图:
SpringCloud官方目前最新最稳定版:2020.0.3,如果单独使用SpringCloud的话,建议选择官方指定的最稳定版
四、如何根据SpringCloud版本确定SpringBoot版本
4.1、方式一(列表方式查找对应的SpringBoot版本) (1)、进入SpringCloud官网首页,往下滚动鼠标,找到如下图位置,即是Spring Cloud版本对应的Spring Boot版本,如下图:
更详细的查找对应的SpringBoot版本 1、访问此链接:https://start.spring.io/actuator/info。
{"git":{"branch":"e47750bf26d8b7fa79877d6dc4458a8e1c2c2ad2","commit":{"id":"e47750b","time":"2021-09-16T04:58:34Z"}},"build":{"version":"0.0.1-SNAPSHOT","artifact":"start-site","versions":{"spring-boot":"2.5.4","initializr":"0.11.0-SNAPSHOT"},"name":"start.spring.io website","time":"2021-09-16T04:59:40.985Z","group":"io.spring.start"},"bom-ranges":{"azure":{"3.2.0":"Spring Boot >=2.3.0.M1 and <2.4.0-M1","3.5.0":"Spring Boot >=2.4.0.M1 and <2.5.0-M1","3.6.1":"Spring Boot >=2.5.0.M1 and <2.6.0-M1"},"codecentric-spring-boot-admin":{"2.4.3":"Spring Boot >=2.3.0.M1 and <2.6.0-M1"},"solace-spring-boot":{"1.1.0":"Spring Boot >=2.3.0.M1 and <2.6.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"},"spring-cloud":{"Hoxton.SR12":"Spring Boot >=2.2.0.RELEASE and <2.4.0.M1","2020.0.3":"Spring Boot >=2.4.0.M1 and <2.5.5-SNAPSHOT","2020.0.4-SNAPSHOT":"Spring Boot >=2.5.5-SNAPSHOT and <2.6.0-M1","2021.0.0-M1":"Spring Boot >=2.6.0.M1 and <2.6.0-SNAPSHOT","2021.0.0-SNAPSHOT":"Spring Boot >=2.6.0-SNAPSHOT"},"spring-cloud-gcp":{"2.0.4":"Spring Boot >=2.4.0-M1 and <2.6.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"},"spring-geode":{"1.3.12.RELEASE":"Spring Boot >=2.3.0.M1 and <2.4.0-M1","1.4.10":"Spring Boot >=2.4.0-M1 and <2.5.0-M1","1.5.4":"Spring Boot >=2.5.0-M1 and <2.6.0-M1","1.6.0-M2":"Spring Boot >=2.6.0-M1"},"vaadin":{"14.7.0":"Spring Boot >=2.1.0.RELEASE and <2.6.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.0":"Spring Boot >=2.5.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-SNAPSHOT","0.10.4-SNAPSHOT":"Spring Boot >=2.5.5-SNAPSHOT and <2.6.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.1":"Spring Boot >=2.5.0-M1 and <2.6.0-M1"},"mybatis":{"2.1.4":"Spring Boot >=2.1.0.RELEASE and <2.5.0-M1","2.2.0":"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.11.1":"Spring Boot >=2.5.0.M1 and <2.6.0-M1"},"open-service-broker":{"3.2.0":"Spring Boot >=2.3.0.M1 and <2.4.0-M1","3.3.0":"Spring Boot >=2.4.0-M1 and <2.5.0-M1"}}}
格式化json后
|