Spring Cloud 2021.0.0-M2 (代号 Jubilee) 已发布。

发布 | Spencer Gibb | 2021年10月04日 | ...

我代表社区,很高兴地宣布 Spring Cloud 2021.0 发布列车 (代号 Jubilee) 的里程碑 2 (M2) 版本于今日发布。该版本可在 Spring Milestone 仓库中找到。您可以查看 2021.0.0-M2 版本说明了解更多信息

2021.0.0-M2 发布列车的显著变化

里程碑 2 与 Spring Boot 2.6.0-M3 兼容。

请参阅项目页面,查看此版本中包含的所有 issue 和 pull request。

Spring Cloud Commons

调整了 Sleuth 的 NamedContextFactory API。

Spring Cloud Config

允许 JDBC Environment 仓库中 String 以外的类型 issue 1952

Spring Cloud Contract

UUID v4 和不区分大小写 issue 1688。使用独立 docker 镜像时允许自定义 build.gradle issue 1672

Spring Cloud Gateway

支持 HTTP 2 协议,issue 7

Spring Cloud Kubernetes

不同 java 客户端之间的一致性。

Spring Cloud Openfeign

添加了对 @CookieValue 注解的支持 issue 604

Spring Cloud Sleuth

添加了 Spring Kafka 检测 issue 2013

包含的模块

以下模块已更新为 2021.0.0-M2 的一部分

模块 版本 Issue
Spring Cloud Zookeeper 3.1.0-M2
Spring Cloud Commons 3.1.0-M2 (issue)
Spring Cloud Kubernetes 2.1.0-M2
Spring Cloud Task 2.4.0-M2
Spring Cloud Bus 3.1.0-M2
Spring Cloud Sleuth 3.1.0-M2 (issue)
Spring Cloud Cli 3.1.0-M2
Spring Cloud Starter Build 2021.0.0-M2
Spring Cloud Vault 3.1.0-M2
Spring Cloud Contract 3.1.0-M2 (issue)

一如既往,我们欢迎在 GitHubStack 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>2021.0.0-M2</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 '2.6.0.M3'
  id 'io.spring.dependency-management' version '1.0.11.RELEASE'
  id 'java'
}

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

ext {
  set('springCloudVersion', "2021.0.0-M2")
}

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 社区的所有近期活动。

查看全部