Spring Cloud 2022.0.2 已发布。
获取地址:Maven
Spring Cloud 为开发人员提供了工具,以快速构建分布式系统中的某些常见模式(例如:配置管理、服务发现、智能路由、微代理、控制总线、一次性令牌、全局锁、分布式会话、群集状态等)。架构如下:
![]()
Spring Cloud 2022.x 是基于 Spring Framework 6.x 和 Spring Boot 3.x 构建的重要版本,兼容 Jakarta EE,并且最低要求使用 Java 17。
此次补丁更新包含以下主要变化:
Spring Cloud Kubernetes
- 使用 Fabric8
DiscoveryClient添加了对外部名称服务的支持 (#1243)
- 将 Pod 的元数据和注释添加到
ServiceInstance(#1254)
Spring Cloud Contract
- 支持使用 sendMessage 处理文件中的 body 部分 (.1867)
- 使用 RestTemplate 拦截器放宽 SSL 验证 (#1869)
Spring Cloud Commons
- 支持批量发送 healthcheck 实例 (#1122)
Spring Cloud OpenFeign
- 为用户提供的参数和返回类型注册原生反射提示 (#849)
- 支持在运行时为原生镜像设置 FeignClient URL (#807)
- 允许为底层 OKHttp 客户端设置协议 (#825)
- 添加使用 factory bean 进行 fallback 的可能性 (#822)
Spring Cloud Function
Spring Cloud Stream
Spring Cloud Consul
- 修复当使用
spring.config.import=consul:时,ONSUL_TOKEN没被读取的问题(738)
- ACL Token 现在会被传递给
agentCheckPass(770)
Spring Cloud Gateway
- 支持在使用本地响应缓存 (Local Response Cache) 时禁用全局缓存 (2895)
以下模块作为 2022.0.2 的一部分也进行了更新:
| Module |
Version |
Issues |
| Spring Cloud Vault |
4.0.1 |
(issues) |
| Spring Cloud Circuitbreaker |
3.0.1 |
|
| Spring Cloud Kubernetes |
3.0.2 |
(issues) |
| Spring Cloud Task |
3.0.2 |
(issues) |
| Spring Cloud Function |
4.0.2 |
(issues) |
| Spring Cloud Commons |
4.0.2 |
(issues) |
| Spring Cloud Openfeign |
4.0.2 |
(issues) |
| Spring Cloud Stream |
4.0.2 |
|
| Spring Cloud Consul |
4.0.2 |
(issues) |
| Spring Cloud Contract |
4.0.2 |
(issues) |
| Spring Cloud Gateway |
4.0.4 |
(issues) |
| Spring Cloud Config |
4.0.2 |
(issues) |
| Spring Cloud Netflix |
4.0.1 |
(issues) |
| Spring Cloud Build |
4.0.2 |
|
详情查看 Release Notes。