当前位置: 首页
编程语言
SpringBoot如何查看与SpringCloud的对应版本

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

热心网友 时间:2026-04-25
转载

1、访问Spring官方网站

要获取最权威的版本对应信息,最直接的办法就是访问Spring的官方项目网站。通常,你只需要在页面上找到并点击查看版本的链接即可。

免费影视、动漫、音乐、游戏、小说资源长期稳定更新! 👉 点此立即查看 👈

2、解读返回的JSON元数据

访问后,网站会返回一份结构清晰的JSON数据,里面包含了构建信息、Git提交记录,以及我们最关心的——各个组件与Spring Boot版本的对应关系。这份数据是动态生成的,可以说是最准确的参考依据。

{
	"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"
		},
		"wa vefront": {
			"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、如何解读具体的对应关系

关键在于看懂JSON结构。以最常用的 `spring-cloud` 为例,我们来看具体怎么解读:

"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、第二种查询办法

查看Ma ven中央仓库:除了官方JSON,还有一个更直观的途径,那就是直接访问Ma ven仓库。比如,打开 https://mvnrepository.com/artifact/org.springframework.cloud/,在对应组件的版本页面上,通常也会明确列出其兼容的Spring Boot版本范围。

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

总结

总的来说,掌握版本对应关系是保证Spring技术栈项目稳定性的第一步。上面介绍的两种方法——查询官方元数据和查看Ma ven仓库——都是经过验证的可靠途径,希望能为大家在技术选型和依赖管理时提供一个清晰的参考。

来源:https://www.jb51.net/program/3625036yl.htm

游乐网为非赢利性网站,所展示的游戏/软件/文章内容均来自于互联网或第三方用户上传分享,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系youleyoucom@outlook.com。

同类文章
更多
Java编译命令在CentOS怎么用

Java编译命令在CentOS怎么用

在CentOS上使用Ja va编译命令 想在CentOS系统上编译Ja va程序?这事儿其实不难,但第一步得先把“家伙事儿”准备好——也就是Ja va开发工具包(JDK)。如果你的系统里还没装JDK,别急,跟着下面这几步走,几分钟就能搞定。 第一步:安装JDK 首先,打开你的终端。接下来,最常用的做

时间:2026-04-25 22:05
如何在CentOS上进行Java编译

如何在CentOS上进行Java编译

在CentOS上编译Ja va程序:从环境搭建到“Hello, World!” 想在CentOS系统上玩转Ja va开发?这事儿其实没想象中那么复杂。核心就两步:先把Ja va开发环境搭起来,然后通过命令行让代码跑起来。下面这份手把手的指南,能帮你快速走通这个流程。 第一步:安装Ja va开发工具包

时间:2026-04-25 22:05
centos下如何交叉编译golang程序

centos下如何交叉编译golang程序

在CentOS系统下交叉编译Go程序 你是否需要在CentOS服务器上开发Go应用,并希望将其部署到Windows、macOS或其它Linux发行版上运行?通过交叉编译技术,你可以轻松地在CentOS环境中生成适用于多种操作系统和CPU架构的可执行文件。实现这一目标的关键在于灵活运用Go语言内置的环

时间:2026-04-25 22:05
SpringBoot如何查看与SpringCloud的对应版本

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

1、访问Spring官方网站 要获取最权威的版本对应信息,最直接的办法就是访问Spring的官方项目网站。通常,你只需要在页面上找到并点击查看版本的链接即可。 2、解读返回的JSON元数据 访问后,网站会返回一份结构清晰的JSON数据,里面包含了构建信息、Git提交记录,以及我们最关心的——各个组件

时间:2026-04-25 22:05
Nacos配置中心与本地代码工程配置文件之间的优先级关系详解

Nacos配置中心与本地代码工程配置文件之间的优先级关系详解

一、核心原理:配置是如何加载的? 要深入理解Nacos配置中心与本地配置的优先级关系,必须首先掌握Spring Cloud应用启动时配置加载的完整流程。整个过程可以清晰地划分为两个关键的上下文阶段: 1 Bootstrap Context(引导上下文) 引导上下文会在主应用上下文之前完成初始化,是

时间:2026-04-25 22:04
热门专题
更多
刀塔传奇破解版无限钻石下载大全 刀塔传奇破解版无限钻石下载大全
洛克王国正式正版手游下载安装大全 洛克王国正式正版手游下载安装大全
思美人手游下载专区 思美人手游下载专区
好玩的阿拉德之怒游戏下载合集 好玩的阿拉德之怒游戏下载合集
不思议迷宫手游下载合集 不思议迷宫手游下载合集
百宝袋汉化组游戏最新合集 百宝袋汉化组游戏最新合集
jsk游戏合集30款游戏大全 jsk游戏合集30款游戏大全
宾果消消消原版下载大全 宾果消消消原版下载大全
  • 日榜
  • 周榜
  • 月榜
热门教程
更多
  • 游戏攻略
  • 安卓教程
  • 苹果教程
  • 电脑教程