距离Spring Boot 2.2.0的发布已经有一个半月左右时间,由于与之匹配的Spring Cloud版本一直没有Release,所以在这期间碰到不少读者咨询的问题都是由于Spring Boot和Spring Cloud版本不匹配导致。

很多时候,我们在学习或重建系统的时候都喜欢直接选用最高版本来开发,但是在使用Spring全家桶的时候,这样的选择不一定是最佳选择。主要还是由于Spring全家桶中各项目之间还存在一定的依赖关系。尤其是在大版本迭代期间,是我们尤其要注意的。比如,这次Spring Framework、Spring Boot、Spring Cloud的升级,是一次整体的大版本的升级,涵盖了Spring Framework 5.2、Spring Boot 2.2、Spring Cloud Hoxton。

由于Spring Boot 2.2基于Spring Framework 5.2构建,而Spring Cloud Hoxton又基于Spring Boot 2.2构建。所以,在Spring Cloud Hoxton发布Release版本之前,出现了很多Spring Boot 2.2搭配Spring Cloud Greenwich版本使用而出现各种莫名问题的情况。

现在Spring Cloud Hoxton的正式发布,也预示着Spring Cloud用户可以正式开始往Spring Boot 2.2.x版本进行逐步升级。

Spring Cloud Hoxton版本内容

下面我们来关注下在Spring Cloud Hoxton版本中都提升了哪些内容。先来看看这次各依赖项目的版本升级:

  • Spring Cloud Aws 2.2.0.RELEASE
  • Spring Cloud Vault 2.2.0.RELEASE
  • Spring Cloud Circuitbreaker 1.0.0.RELEASE
  • Spring Cloud Cli 2.2.0.RELEASE
  • Spring Cloud Gateway 2.2.0.RELEASE
  • Spring Cloud Zookeeper 2.2.0.RELEASE
  • Spring Cloud Starter Hoxton.RELEASE
  • Spring Cloud Build 2.2.0.RELEASE
  • Spring Cloud Config 2.2.0.RELEASE
  • Spring Cloud Dependencies Parent 2.2.0.RELEASE
  • Spring Cloud Starter Parent Hoxton.RELEASE
  • Spring Cloud Sleuth 2.2.0.RELEASE
  • Spring Cloud Contract 2.2.0.RELEASE
  • Spring Cloud Gcp 1.2.0.RELEASE
  • Spring Cloud Bus 2.2.0.RELEASE
  • Spring Cloud Consul 2.2.0.RELEASE
  • Spring Cloud Stream Horsham.RELEASE
  • Spring Cloud Kubernetes 1.1.0.RELEASE
  • Spring Cloud Openfeign 2.2.0.RELEASE
  • Spring Cloud Commons 2.2.0.RELEASE
  • Spring Cloud Dependencies Hoxton.RELEASE
  • Spring Cloud Task 2.2.0.RC1
  • Spring Cloud Function 3.0.0.RELEASE
  • Spring Cloud Hoxton.RELEASE
  • Spring Cloud Netflix 2.2.0.RELEASE
  • Spring Cloud Security 2.2.0.RELEASE
  • Spring Cloud Release Hoxton.RELEASE
  • Spring Cloud Cloudfoundry 2.2.0.RELEASE

在这次的版本升级中,我觉得以下几点是非常值得读者关注和学习的:

新的负载均衡器实现

Spring Cloud Hoxton版本中第一次引入同时支持阻塞式与非阻塞式的负载均衡器来作为已经进入维护状态的Netflix Ribbon。

通过引入org.springframework.cloud:spring-cloud-loadbalancer依赖,你就可以将新的BlockingLoadBalancerClientRestTemplate一起使用了。

同时,该依赖的引入也将支持Reactive应用,跟其他使用一样,只需要使用@LoadBalanced来修饰WebClient.Builder即可。

新的断路器实现

该项目中定义了断路器的抽象API,以及对各开源实现的整合封装,其中包括:

  • Resilience4j
  • Spring Retry
  • Hystrix (spring-cloud-netflix)
  • Sentinel (spring-cloud-alibaba)

加入更多Reactive支持

  • Spring Cloud Gateway中增加ReactiveLoadBalancer
  • 以下组件中增加ReactiveDiscoveryClient服务发现实现:
    • Spring Cloud Netflix
    • Spring Cloud Consul
    • Spring Cloud Zookeeper
    • Spring Cloud Openfeign
    • Spring Cloud Cloudfoundry
    • Spring Cloud Kubernetes

相关阅读

  • Spring Boot 2.2.0 正式发布,大幅性能提升 + Java 13 支持
  • Spring Boot 2.2.1 正式发布,需特别注意这个注解的使用!
  • Spring Cloud 全面学习教程

Spring Cloud Hoxton正式发布,Spring Boot 2.2 不再孤单相关推荐

  1. Spring Cloud Hoxton正式发布,Spring Boot 2.2.x不再孤单

    点击上方蓝色"程序猿DD",选择"设为星标" 回复"资源"获取独家整理的学习资料! 距离Spring Boot 2.2.0的发布已经有一个半 ...

  2. Spring Cloud Hoxton.SR8 发布

    点击上方蓝色"程序猿DD",选择"设为星标" 回复"资源"获取独家整理的学习资料! 来源 | https://www.oschina.net ...

  3. Spring Cloud Hoxton 版本微服务项目搭建 admin 监控客户端

    Spring Cloud Hoxton 版本微服务项目搭建 admin 监控客户端 前言 在上一篇文章博主已经讲解了admin 管理中心服务项目如何创建,不会的话可以前往学习,传送门:Spring C ...

  4. Spring Cloud、Spring Cloud Alibaba、Spring Boot版本对应关系

    目录 Spring Cloud.Spring Cloud Alibaba.Spring Boot版本对应关系 Spring Cloud Alibaba组件版本对应关系 官网文档链接 Spring Cl ...

  5. Spring Cloud(5)---基于 Spring Cloud 完整的微服务架构实战

    基于 Spring Cloud 完整的微服务架构实战 技术栈 Spring boot - 微服务的入门级微框架,用来简化 Spring 应用的初始搭建以及开发过程. Eureka - 云端服务发现,一 ...

  6. Spring Cloud的负载均衡Spring Cloud Ribbon和Spring Cloud Feign

    一.客户端负载均衡:Spring Cloud Ribbon. Spring Cloud Ribbon是基于HTTP和TCP的客户端负载工具,它是基于Netflix Ribbon实现的.通过Spring ...

  7. spring cloud gateway 与spring cloud版本对应问题

    spring cloud gateway 与spring cloud版本对应问题 问题描述 学习B站谷粒商场,因为项目package版本总是不对应,冒出各种问题,今天学到网关内容,又出现版本对应问题. ...

  8. 【Spring Cloud Alibaba】Spring Cloud Alibaba 分布式配置Nacos实践

    课程说明 本次课程,你将会学习如下: 使用 Nacos Config 作为 Spring Cloud 分布式配置 使用 Nacos Config 实现 Bean 动态刷新 了解 Nacos Confi ...

  9. Spring Cloud第二季--Spring Cloud Bus

    文章目录 Spring Clud Bus 什么是总线 基本原理 牛刀小试 Spring Clud Bus 在Spring Cloud学习–配置中心(Config)中实现了集中管理微服务配置.不同环境不 ...

最新文章

  1. nvGRAPH API参考分析(一)
  2. AI一分钟 |“最抢手”毕业生排名出炉:清华没进前三?支付宝将支持iPhone X刷脸
  3. 关于SIM800C MINI V4.0 V4版本 5v供电模块重启问题
  4. Apache Kafka(二)- Kakfa 安装与启动
  5. cordova监听事件中调用其他方法_Laravel模型事件的实现原理详解
  6. 清华镜像源安装 NGboost XGboost Catboost
  7. OpenCV防止数据溢出saturate_cast
  8. java代码怎样整体左移_java 多行代码左移
  9. 2019年最新 Python 模拟登录知乎 支持验证码
  10. jQuery--checkbox全选/取消全选 及checkbox遍历
  11. linux怎样打开终端命令,Linux命令-初学者入门之打开终端
  12. 新手必须要注意的编程范式
  13. 【蓝牙】什么?还不知道蓝牙协议栈开源了?
  14. 日期对象(Date)操作 getMonth()方法
  15. android分屏模式_Android分屏模式开发注意事项
  16. 音乐家们的开源工具箱
  17. 新唐M251 CORTEX-M23内核移植TencentOS tiny教程
  18. C语言之实用调试技巧
  19. 1255B. Fridge Lockers Codeforce题解
  20. 计算机科学与技术影视,影视作品可视化研究-计算机科学与技术专业论文.docx

热门文章

  1. ATS push cache 测试
  2. 【IEnumerable】扩展方法的使用 C#
  3. Asp.net 中 Eval 调用后台函数的写法
  4. 如何将android例子程序添加到Eclipse进行调试运行
  5. std::string的resize()与reserve()的区别
  6. UDT源码剖析(二):UDT自带例程recvfile注释
  7. 数据结构和算法,也就那么回事儿
  8. hp-socket 文本跟图片同时发送_文本、截图和应用,这样「包装」一秒变美观
  9. 【Pytorch神经网络理论篇】 35 GaitSet模型:步态识别思路+水平金字塔池化+三元损失
  10. Webpack的代码分包Vue3中定义异步组件分包refs的使用