Spring Cloud 2022.0.0-M5 现已发布

发布 | Spencer Gibb | 2022年10月06日 | ...

我谨代表社区,非常高兴地宣布 Spring Cloud 2022.0.0 Release Train 的 Milestone 5 (M5) 今日发布。您可以在 Spring Milestone 仓库中找到该发布版本。您可以查阅 2022.0.0 的 发布说明以获取更多信息

2022.00-M5 Release Train 的主要变更

Spring Cloud Netflix

  • 更新至 Eureka 2.0.0-rc.3。Eureka 2.0.0 是 Eureka 的一个新分支,与 7 年前的 旧 2.x-archive 实验无关。新的 2.x 分支是为了与 JakartaEE 兼容。这使得 Spring Cloud Netflix 能够与 Spring Framework 6.0 和 Spring Boot 3.0 兼容。这是 Spring Cloud Netflix 首次参与 2022.0 release train 的里程碑发布。

Spring Cloud Consul

  • 添加了运行时提示以启用原生镜像支持 (#792)

Spring Cloud Gateway

  • 支持 Micrometer Observability (#2715)
  • 新增过滤器用于移除 JSON 属性 (#2742)
  • 新增过滤器用于在请求头不存在时添加请求头 (#2737)

Spring Cloud OpenFeign

  • 允许根据选定的 ServiceInstance 自定义负载均衡的请求 (#735)

Spring Cloud Commons

  • 添加了基于权重的负载均衡 (#1063)
  • 在 AOT 和原生镜像支持中添加了对 LoadBalancer 子上下文的支持 (#1135)

Spring Cloud Config

  • 添加了运行时提示以启用原生支持 (#2174)

作为 2022.0.0-M5 的一部分,以下模块已更新:

模块 版本 问题
Spring Cloud Stream 4.0.0-M5
Spring Cloud Config 4.0.0-M5 (issues)
Spring Cloud Build 4.0.0-M5 (issues)
Spring Cloud Consul 4.0.0-M5 (issues)
Spring Cloud Gateway 4.0.0-M5 (issues)
Spring Cloud Kubernetes 3.0.0-M5 (issues)
Spring Cloud Netflix 4.0.0-M1 (issues)
Spring Cloud Starter Build 2022.0.0-M5
Spring Cloud Circuitbreaker 3.0.0-M5 (issues)
Spring Cloud Contract 4.0.0-M5 (issues)
Spring Cloud Bus 4.0.0-M5 (issues)
Spring Cloud Function 4.0.0-M5
Spring Cloud Task 3.0.0-M5 (issues)
Spring Cloud Zookeeper 4.0.0-M5 (issues)
Spring Cloud Openfeign 4.0.0-M5 (issues)
Spring Cloud Vault 4.0.0-M5 (issues)
Spring Cloud Commons 4.0.0-M5 (issues)

一如既往,我们欢迎大家在 GitHubGitterStack OverflowTwitter 上提供反馈。

Maven 起步使用 BOM(仅依赖管理)


    <repositories>
        <repository>
            <id>spring-milestones</id>
            <name>Spring Milestones</name>
            <url>https://repo.spring.io/milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>2022.0.0-M5</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>
<dependencies>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-config</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
    </dependency>
    ...
</dependencies>

或使用 Gradle

plugins {
  id 'org.springframework.boot' version '3.0.0-M5'
  id 'io.spring.dependency-management' version '1.0.14.RELEASE'
  id 'java'
}

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'

repositories {
  mavenCentral()
  maven { url 'https://repo.spring.io/milestone' }
}

ext {
  set('springCloudVersion', "2022.0.0-M5")
}

dependencyManagement {
  imports {
    mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
  }
}

dependencies {
  compile 'org.springframework.cloud:spring-cloud-starter-config'
  compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
}
...
}

获取 Spring 新闻通讯

通过 Spring 新闻通讯保持联系

订阅

领先一步

VMware 提供培训和认证,助您加速进步。

了解更多

获得支持

Tanzu Spring 提供 OpenJDK™、Spring 和 Apache Tomcat® 的支持和二进制文件,只需一份简单的订阅。

了解更多

即将举行的活动

查看 Spring 社区所有即将举行的活动。

查看所有