SpringBoot 与 SpringCloud的版本对应详细版

| Greenwich版本 | 兼容Spring Boot 2.1.x |

| Hoxtonl版本 | 兼容Spring Boot 2.2.x |

在实际开发过程中,我们需要更详细的版本对应:

| Spring Boot | Spring Cloud |

| --- | --- |

| 1.5.2.RELEASE | Dalston.RC1 |

| 1.5.9.RELEASE | Edgware.RELEASE |

| 2.0.2.RELEASE | Finchley.BUILD-SNAPSHOT |

| 2.0.3.RELEASE | Finchley.RELEASE |

| 2.1.0.RELEASE-2.1.14.RELEASE | Greenwich.SR5 |

| 2.2.0.M4 | Hoxton.SR4 |

关于spring cloud1.x版本和2.x版本区别

=========================================================================================================================================================

spring cloud各个版本之间是有所区别的,比如在SpringCloud中,1.X和2.X版本在pom.xml中引入的jar包名字都不一样,比如有的叫spirng-cloud-starter-hystrix 有的叫spring-cloud-netflix-hystrix,维护起来会比较困难。

1.x版本pom.xml里几个基本用到的jar长这样:

<project xmlns="http://maven.apache.org/POM/4.0.0"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

4.0.0

com.joyce

joyce-test

1.0

jar

org.springframework.boot

spring-boot-starter-parent

1.5.9.RELEASE

org.springframework.cloud

spring-cloud-dependencies

Edgware.RELEASE

pom

import

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

org.springframework.cloud

spring-cloud-starter-feign

org.springframework.cloud

spring-cloud-starter-hystrix

org.springframework.cloud

spring-cloud-starter-zipkin

org.springframework.cloud

spring-cloud-starter-eureka

org.springframework.boot

spring-boot-starter-actuator

org.springframework.boot

spring-boot-starter-web

org.springframework.boot

spring-boot-starter-tomcat

org.springframework.boot

spring-boot-starter-jetty

org.springframework.cloud

spring-cloud-starter-ribbon

org.springframework.boot

spring-boot-starter-test

test

而在2.x版本中,比如我们需要eureka,去maven仓库中可能会看到deprecated, please use spring-cloud-starter-netflix-eureka-client这类提示,包括使用ribbon也会有

所以个人猜测2.x中统一用

spring-cloud-starter-netflix-xx 替换了原有的 spring-cloud-starter-xx(此处如有不正确请指出)

所以2.x的版本pom.xml类似如下这样

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

4.0.0

com.forezp

service-feign

0.0.1-SNAPSHOT

jar

service-feign

Demo project for Spring Boot

com.forezp

sc-f-chapter3

0.0.1-SNAPSHOT

相关推荐
青梅主码1 分钟前
微软最新发布《微软2025年新未来工作报告》:AI 如何帮助团队和组织实现集体生产力的提升?
后端
Moshow郑锴21 分钟前
SpringBoot 内置 CollectionUtil:实战用法速览,告别空指针!
windows·spring boot·microsoft
武子康22 分钟前
大数据-193 Apache Tez 实战:Hive on Tez 安装配置、DAG原理与常见坑
大数据·后端·apache
青石路22 分钟前
用了MySQL的INSERT ON DUPLICATE KEY UPDATE,怎么还报唯一索引冲突错误
后端·sql·mysql
唐装鼠29 分钟前
Rust 中的 `parse` 方法详解(deepseek)
开发语言·后端·rust
唐装鼠31 分钟前
Rust 自动引用规则完全指南(deepseek)
开发语言·后端·rust
kkkkkkkkl2435 分钟前
Spring Boot 中基于线程池的订单创建并行化实践
java·spring boot·juc
星辰离彬39 分钟前
2025 IDEA运行报错:运行 xxxxApplication 时出错。命令行过长。 通过 JAR 清单或通过类路径文件缩短命令行,然后重新运行。
java·后端·intellij-idea·jar
Sunniering43 分钟前
使用classfinal-maven-plugin加密 Spring Boot JAR 包配置流程
spring boot·maven·jar·classfinal插件
Qiuner1 小时前
Spring Boot AOP (四)与事务、异常处理交互
spring boot·后端·交互