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

相关推荐
海南java第二人43 分钟前
Cursor 高级实战:从 Spring Boot 到微服务,AI 驱动的全流程开发指南
人工智能·spring boot·微服务
爱笑的源码基地1 小时前
门诊his系统源码,中西医结合的数字化门诊解决方案
java·spring boot·源码·二次开发·门诊系统·云诊所系统·诊所软件源码
SimonKing1 小时前
全网爆火的OpenClaw保姆级教程Linux版,它来了。
java·后端·程序员
青柠代码录1 小时前
【Linux】常用命令:sort
后端
隔壁小邓2 小时前
SpringCloud微服务拆分原则
spring cloud·微服务·架构
小江的记录本2 小时前
【MyBatis-Plus】MyBatis-Plus的核心特性、条件构造器、分页插件、乐观锁插件
java·前端·spring boot·后端·sql·tomcat·mybatis
驕傲的兎孒2 小时前
基于 SpringBoot + Vue3 + AI 打造企业级售后服务支持平台 | 实战方案分享
人工智能·spring boot·后端
vx-程序开发2 小时前
springboot在线装修管理系统-计算机毕业设计源码56278
java·c语言·spring boot·python·spring·django·php
大傻^2 小时前
Spring AI Alibaba 可观测性实践:AI应用监控与链路追踪
java·人工智能·后端·spring·springaialibaba
诗人不写诗2 小时前
spring是如何组织切面的
java·后端·spring