Spring Cloud 和 Spring Boot 的版本之间存在一定的对应关系,因为 Spring Cloud 依赖于 Spring Boot 提供的基础功能。通常情况下,每个主要版本的 Spring Cloud 都是与特定版本范围的 Spring Boot 兼容的。以下是截至2024年12月的最新版本信息和一个简化的关系图。
Spring Cloud 和 Spring Boot 版本对应关系
简化的关系图
Spring Ecosystem Version Compatibility
├── Spring Boot
│ ├── 3.2.x (Train Milestone/Release)
│ └── 3.1.x (LTS, Long Term Support)
└── Spring Cloud
├── 2023.0.x (Eureka SRx) - 对应 Spring Boot 3.2.x
├── 2022.0.x (Gateway SRx) - 对应 Spring Boot 3.1.x
└── 更早版本(如2021.0.x)- 对应更早版本的 Spring Boot
请注意,Spring Cloud 的版本命名从2020年开始使用了新的命名方案,不再以字母表顺序命名(如 Hoxton, Ilford 等),而是采用了基于年份的命名方式(如 2021.0.x, 2022.0.x)。同时,Spring Boot 也有了自己的长期支持(LTS)版本,例如 3.1.x 是当前的 LTS 版本。
如何确定兼容性
为了确保你选择的 Spring Cloud 和 Spring Boot 版本兼容,你应该:
<