当前位置:

首页 > 编程开发 > SpringBoot如何查看与SpringCloud的对应版本

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

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

本文目录

    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仓库——都是经过验证的可靠途径,希望能为大家在技术选型和依赖管理时提供一个清晰的参考。

    本站声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系bd@zhengruan.com
    作者最新文章
    编程开发
    相关文章 更多
    LiteLLM v1.113.0-dev.2 开发版的 Claude 原生接入值得评估吗?
    LiteLLM v1.113.0-dev.2 开发版的 Claude 原生接入值得评估吗?

    如果正在使用三种受支持云平台上的模型,并且关注原生网关的请求路径,这个开发版本有评估价值;它属于开发预发布,不能仅凭新增功能就认定适合直接替换生产环境。 LiteLLM v1.113.0-dev.2 属于开发预发布。

    llama.cpp b12835 源码核对方法与张量并行修正说明
    llama.cpp b12835 源码核对方法与张量并行修正说明

    llama.cpp b12835 是修正张量并行单设备数据状态的预发布构建。按标签获取源码,检查完整提交号,并定位相关实现,了解适用场景。

    GitHub Copilot CLI v1.0.117-2预发行版如何处理共享会话模型失效?
    GitHub Copilot CLI v1.0.117-2预发行版如何处理共享会话模型失效?

    GitHub Copilot CLI v1.0.117-2预发行版支持先恢复原模型不可用的共享会话,再通过/model切换可用模型。说明恢复顺序、验证方法及扩展授权边界。

    Ducter v0.1.85最近七天的任务Token报告怎么看?
    Ducter v0.1.85最近七天的任务Token报告怎么看?

    Ducter v0.1.85 七天任务用量查询教程:按步骤查看文本和JSON,分清缓存输入、重点任务及统计边界。

    Ducter v0.1.84 完成消息怎样看,Linux 版安装顺序是什么?
    Ducter v0.1.84 完成消息怎样看,Linux 版安装顺序是什么?

    Ducter v0.1.84 用一行提示集中呈现离开期间完成的工作,同时保留即时决策问题。说明 Done 的含义与 Linux 历史版本的架构选择、摘要校验及服务安装。

    llama.cpp b12833 预发布值得哪些用户评估?
    llama.cpp b12833 预发布值得哪些用户评估?

    llama.cpp b12833 在 WebGPU 中新增 CONV_TRANSPOSE_1D 支持。认清精度范围、版本身份与测试条件后再判断是否适合现有任务。

    llama.cpp b12832 值得关注什么,怎样核对 Mac 下载文件?
    llama.cpp b12832 值得关注什么,怎样核对 Mac 下载文件?

    llama.cpp b12832 新增 CONCAT 反向传播。了解它与梯度计算的关系、预发布范围,以及 Apple Silicon Mac 下载包的版本选择和 SHA-256 核对步骤。

    llama.cpp b12830 预发布构建 K2 Horizon 工具调用修复范围与判断步骤
    llama.cpp b12830 预发布构建 K2 Horizon 工具调用修复范围与判断步骤

    llama.cpp b12830 预发布构建避免 K2 Horizon 思考块未关闭时丢失工具调用,说明修复机制、判断步骤和 medium、high effort 测试条件。

    Cursor撤回Nooks插件后,新接入和已有连接该怎样判断?
    Cursor撤回Nooks插件后,新接入和已有连接该怎样判断?

    从官方撤回差异确认变更范围,再用只读查询核对当前插件目录,分别判断新接入和已有本地连接。

    OpenCode v2.4.2使用解读:单站授权、失败续跑与超时停止
    OpenCode v2.4.2使用解读:单站授权、失败续跑与超时停止

    说明OpenCode v2.4.2的网站批准范围、旧批准不变、自动化失败后下一次照计划运行及超时停止命令的边界,提供完整的发行记录读取方法。

    查看更多
    精品专题 更多
    装机必备
    装机必备

    正软商城装机必备专区,精选办公、浏览器、安全防护、影音播放、压缩解压、设计创作和系统工具等电脑常用正版软件,帮助用户快速完成新电脑软件配置。

    Windows
    Windows

    正软商城Windows软件专区,汇集适用于Windows电脑的办公、设计、安全防护、影音播放、开发工具和系统优化软件,提供软件介绍、系统要求、正版授权及购买下载服务。

    PDF教程
    PDF教程

    正软商城PDF教程频道提供PDF编辑、转换、合并、拆分、压缩及格式处理方法,同时介绍常用PDF软件和工具的使用技巧。

    Mac软件 更多
    Ollama
    Ollama
    macOS / Windows / Linux

    Ollama 可在自己的电脑上下载和运行语言模型,并通过聊天界面、命令行或本地 API 使用。支持 macOS、Windows 与 Linux,模型大小、内存和上下文设置会影响运行体验,也提供独立的云模型入口。

    GitHub Desktop
    GitHub Desktop
    Windows / macOS

    GitHub Desktop 把 Git 仓库的改动对比、提交、分支切换和同步放进桌面窗口,适合不想频繁输入命令的开发者。支持 Windows 与 macOS,可连接 GitHub 仓库并配合编辑器完成日常协作。

    Antinote
    Antinote
    macOS 14 及以上

    Antinote 是 Mac 上的轻量草稿板,支持快捷唤出、清单、计算、单位换算和图片文字识别,也能把内容转到其他笔记工具。要求 macOS 14 以上,适合临时记事和桌面工作中的快速整理。

    WINDOWS 更多
    Ollama
    Ollama
    macOS / Windows / Linux

    Ollama 可在自己的电脑上下载和运行语言模型,并通过聊天界面、命令行或本地 API 使用。支持 macOS、Windows 与 Linux,模型大小、内存和上下文设置会影响运行体验,也提供独立的云模型入口。

    GitHub Desktop
    GitHub Desktop
    Windows / macOS

    GitHub Desktop 把 Git 仓库的改动对比、提交、分支切换和同步放进桌面窗口,适合不想频繁输入命令的开发者。支持 Windows 与 macOS,可连接 GitHub 仓库并配合编辑器完成日常协作。

    Golden 8
    Golden 8
    Golden 8 · Windows

    Golden 8 是 Benthic Software 的 Windows Oracle 数据库客户端,提供多标签 SQL 编辑、关联查询辅助、结果表格与导出。连接前需要安装与软件位数一致的 Oracle Client,可先使用 30 天试用版。