Spring Cloud、Spring Boot、Spring Cloud Alibaba 的版本到底怎么对应?配错了会发生什么?关掉兼容性校验器能不能蒙混过关?这篇从 Maven Central 的 pom 里读出对应关系,并真正起 4 组 Boot 与 Cloud 的组合看结果。
2023.0.6:spring-cloud-build 4.1.6 里的 spring-boot.version = 3.3.13;commons 4.1.6;gateway 4.1.9;openfeign 4.1.5;config 4.1.7;circuitbreaker 3.1.5;stream 4.1.6;kubernetes 3.1.6 2024.0.3:spring-cloud-build 4.2.4 里的 spring-boot.version = 3.4.12;commons 4.2.4;gateway 4.2.7;openfeign 4.2.3;config 4.2.4;circuitbreaker 3.2.3;stream 4.2.3;kubernetes 3.2.3 2025.0.3:spring-cloud-build 4.3.4 里的 spring-boot.version = 3.5.15;commons 4.3.3;gateway 4.3.5;openfeign 4.3.3;config 4.3.4;circuitbreaker 3.3.3;stream 4.3.3;kubernetes 3.3.3 2025.1.3:spring-cloud-build 5.0.3 里的 spring-boot.version = 4.0.8;commons 5.0.3;gateway 5.0.3;openfeign 5.0.3;config 5.0.5;circuitbreaker 5.0.3;stream 5.0.3;kubernetes 5.0.3
2023.0→Boot 3.3,2024.0→3.4,2025.0→3.5,2025.1→4.0;各组件版本号各不相同。
Boot 4.0.8 + Cloud 2025.1.3 → 启动成功:Boot 4.0.8,Spring Framework 7.0.9 Boot 3.5.16 + Cloud 2025.1.3 → 启动失败(退出码 1):Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/bootstrap/ConfigurableBootstrapContext | Caused by: java.lang.ClassNotFoundException: org.springframework.boot.bootstrap.ConfigurableBootstrapContext Boot 4.0.8 + Cloud 2025.0.3 → 启动失败(退出码 1):Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/web/context/WebServerInitializedEvent | Caused by: java.lang.ClassNotFoundException: org.springframework.boot.web.context.WebServerInitializedEvent Boot 3.5.16 + Cloud 2025.0.3 → 启动成功:Boot 3.5.16,Spring Framework 6.2.19 Boot 3.5.16 + Cloud 2025.1.3,加 -Dspring.cloud.compatibility-verifier.enabled=false → 启动失败(退出码 1):Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/bootstrap/ConfigurableBootstrapContext | Caused by: java.lang.ClassNotFoundException: org.springframework.boot.bootstrap.ConfigurableBootstrapContext
大版本错配直接 NoClassDefFoundError,关闭兼容性校验器无效。
Alibaba 2023.0.3.4:nacos-client 2.4.3;sentinel 1.8.8;seata 2.1.0;parent spring-cloud-dependencies-parent 4.1.0 Alibaba 2025.0.0.0:nacos-client 3.0.3;sentinel 1.8.9;seata 2.5.0;parent spring-cloud-dependencies-parent 4.3.0 Alibaba 2025.1.0.0:nacos-client 3.1.1;sentinel 1.8.9;seata 2.5.0;parent spring-cloud-dependencies-parent 5.0.0 Boot 4.0.8 + Cloud 2025.1.3 + Alibaba 2025.1.0.0 的 nacos-discovery(关闭注册与发现,不连 Nacos)→ 启动成功:Boot 4.0.8,Spring Framework 7.0.9
四段版本号,前两段对应 Cloud 列车;nacos-client 随列车升到 3.x。