SpringBoot如何查看与SpringCloud的对应版本

 更新时间:2026年04月20日 11:00:14   作者:飞四海  
本文介绍了查看Spring Cloud版本对应Spring Boot版本的方法,一种是访问Spring官网,获取JSON格式的对应关系;另一种是查看Maven仓库,这两种方法都可以帮助我们了解Spring Cloud版本对应的Spring Boot版本范围

1、访问spring网站

spring查看版本点击即可 

2、会返回对应版本json

{
	"git": {
		"branch": "f108974763241b29b1ccca808fb51b845aef6872",
		"commit": {
			"id": "f108974",
			"time": "2022-11-18T17:14:23Z"
		}
	},
	"build": {
		"version": "0.0.1-SNAPSHOT",
		"artifact": "start-site",
		"versions": {
			"spring-boot": "2.7.5",
			"initializr": "0.20.0-SNAPSHOT"
		},
		"name": "start.spring.io website",
		"time": "2022-11-18T17:26:09.482Z",
		"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.4": "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.2": "Spring Boot >=2.6.0.M1 and <3.0.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.2": "Spring Boot >=2.6.0.M1 and <3.0.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.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.1.0-M1"
		},
		"spring-cloud-azure": {
			"4.3.0": "Spring Boot >=2.5.0.M1 and <2.7.0-M1",
			"4.4.1": "Spring Boot >=2.7.0-M1 and <3.0.0-M1",
			"6.0.0-beta.3": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"
		},
		"spring-cloud-gcp": {
			"2.0.11": "Spring Boot >=2.4.0-M1 and <2.6.0-M1",
			"3.4.0": "Spring Boot >=2.6.0-M1 and <3.0.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-shell": {
			"2.1.3": "Spring Boot >=2.7.0 and <3.0.0-M1",
			"3.0.0-M2": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"
		},
		"vaadin": {
			"14.9.1": "Spring Boot >=2.1.0.RELEASE and <2.6.0-M1",
			"23.2.7": "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.1": "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.6": "Spring Boot >=2.5.0-M1 and <3.0.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.19.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"
		}
	}
}

3、如何去看具体对应关系

看这个:

"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.1.0-M1"
		}

这里能看出:

“Hoxton.SR12": "Spring Boot >=2.2.0.RELEASE and <2.4.0.M1”

spring-cloud版本为Hoxton.SR12,对应的Spring Boot版本为 大于 >=2.2.0.RELEASE 和 小于<2.4.0.M1

4、第二种办法

查看maven仓库:https://mvnrepository.com/artifact/org.springframework.cloud/

也可以直接看到spring-cloud对应的springboot版本

总结

以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。

相关文章

  • 详解MyBatis直接执行SQL查询及数据批量插入

    详解MyBatis直接执行SQL查询及数据批量插入

    这篇文章主要介绍了MyBatis直接执行SQL查询及数据批量插入的相关知识,需要的朋友一起学习吧
    2016-01-01
  • Java实现多个数组间的排列组合

    Java实现多个数组间的排列组合

    这篇文章主要为大家详细介绍了Java实现多个数组间的排列组合,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
    2018-02-02
  • 完全解析Java编程中finally语句的执行原理

    完全解析Java编程中finally语句的执行原理

    这篇文章主要深度介绍了Java编程中finally语句的执行原理,细致讲解了finally在异常处理中的流程控制作用,需要的朋友可以参考下
    2015-11-11
  • RocketMQ顺序消息的原理与特点

    RocketMQ顺序消息的原理与特点

    RocketMQ作为一款纯java、分布式、队列模型的开源消息中间件,支持事务消息、顺序消息、批量消息、定时消息、消息回溯等,本篇我们了解如何实现顺序消息的原理与特点
    2023-02-02
  • SpringBoot如何从配置文件中读取配置参数

    SpringBoot如何从配置文件中读取配置参数

    这篇文章主要介绍了SpringBoot如何从配置文件中读取配置参数问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教
    2024-01-01
  • 使用svn管理Maven项目的方法步骤

    使用svn管理Maven项目的方法步骤

    这篇文章主要介绍了使用svn管理Maven项目的方法步骤,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
    2020-08-08
  • springboot集成nacos无法动态获取nacos配置的问题

    springboot集成nacos无法动态获取nacos配置的问题

    这篇文章主要介绍了springboot集成nacos无法动态获取nacos配置的问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教
    2023-09-09
  • MyBatis-Plus 中 nested() 与 and() 方法详解(最佳实践场景)

    MyBatis-Plus 中 nested() 与 and() 方法详解(最佳实践场景)

    在MyBatis-Plus的条件构造器中,nested()和and()都是用于构建复杂查询条件的关键方法,但它们在功能和使用场景上有显著差异,本文给大家介绍MyBatis-Plus中nested()与and()方法,感兴趣的朋友一起看看吧
    2025-07-07
  • Spring Security6配置方法(废弃WebSecurityConfigurerAdapter)

    Spring Security6配置方法(废弃WebSecurityConfigurerAdapter)

    本文主要介绍了Spring Security6配置方法(废弃WebSecurityConfigurerAdapter),就像文章标题所说的,SpringSecurity已经废弃了继承WebSecurityConfigurerAdapter的配置方式,下面就来详细的介绍一下,感兴趣的可以了解一下
    2023-12-12
  • JDK21安装与配置完整图文教程

    JDK21安装与配置完整图文教程

    JDK21版本作为Java平台的未来版本,可能会带来一系列创新和优化,从性能到安全性,再到编程体验和跨平台能力,都是它将要重点关注的领域,这篇文章主要介绍了JDK21安装与配置的相关资料,需要的朋友可以参考下
    2026-02-02

最新评论