Spring Cloud Hoxton.M3 现已可用

发布 | Spencer Gibb | 2019 年 10 月 5 日 | ...

我代表社区,很高兴地宣布 Spring Cloud Hoxton 发行版本系列的里程碑 3 (M3) 版本今天发布了。该版本可在 Spring Milestone 仓库中找到。您可以查看 Hoxton 发行说明以获取更多信息。

Hoxton 发行版本系列中的显著变化

此里程碑版本与 Spring Boot 2.2.0.RC1 兼容。

Spring Cloud Circuit Breaker

我们欢迎 Spring Cloud Circuit Breaker 作为 Spring Cloud 发行版本系列下的一个新项目。该项目提供了一个抽象 API,用于向您的应用程序添加断路器 (circuit breakers)。在本博客文章发布时,支持四种实现方式

有关更多信息,请参阅公告博客文章

Spring Cloud Config

一个支持 AWS S3 的环境仓库 (Environment Repository)。

Spring Cloud Commons

为了支持 Spring 的响应式 (Reactive) 技术栈,我们做了很多改进。创建了一个 ReactiveDiscoveryClient。此外,还对 Spring Cloud Loadbalancer 进行了更新,以使用新的 ReactiveDiscoveryClient。添加了一个新的 spring-cloud-starter-loadbalancer

Spring Cloud Cloudfoundry

添加了对新的 ReactiveDiscoveryClient 的支持。

Spring Cloud Zookeeper

添加了对新的 ReactiveDiscoveryClient 的支持。

Spring Cloud Gateway

添加了对使用新的 ReactiveLoadBalancer 的支持。RSocket 支持已更新,以实现 RSocket Routing and Forwarding 规范扩展的功能。

在 Hoxton 发布时,Spring Cloud Gateway 中的 RSocket 支持将是一个技术预览 (technology preview),直到 RSocket Routing and Forwarding 规范扩展最终确定并且 RSocket Java 实现相应更新。

Spring Cloud Netflix

添加了对新的 ReactiveDiscoveryClient 以及 Hystrix 的新 Spring Cloud Circuit Breaker API 实现的支持。

Spring Cloud Kubernetes

添加了对新的 ReactiveDiscoveryClient 的支持。

Spring Cloud Contract

添加了对 Spring Kafka 的支持。

Spring Cloud Openfeign

OpenFeign 已更新至 10.4.0。

Spring Cloud Sleuth

添加了对 AWS SQS、Spring Kafka 和 Quartz 的支持。

Spring Cloud Consul

添加了对新的 ReactiveDiscoveryClient 以及 Consul 一致性模式的支持。

Spring Cloud Vault

添加了对 PCF Authentication 和 X-Vault-Namespace 的支持。


以下模块作为 Hoxton.M3 的一部分进行了更新

| 模块 | 版本 | 问题 |--- |--- |--- |--- | Spring Cloud Config | 2.2.0.M3 | (问题) | Spring Cloud Cloudfoundry | 2.2.0.M3 | (问题) | Spring Cloud Cli | 2.2.0.M2 |
| Spring Cloud Zookeeper | 2.2.0.M3 |
| Spring Cloud Aws | 2.2.0.M3 | (问题) | Spring Cloud Gateway | 2.2.0.M3 | (问题) | Spring Cloud Netflix | 2.2.0.M3 | (问题) | Spring Cloud Kubernetes | 1.1.0.M3 | (问题) | Spring Cloud Task | 2.2.0.M2 | (问题) | Spring Cloud Commons | 2.2.0.M3 | (问题) | Spring Cloud Contract | 2.2.0.M3 | (问题) | Spring Cloud Openfeign | 2.2.0.M3 | (问题) | Spring Cloud Security | 2.2.0.M3 | (问题) | Spring Cloud Bus | 2.2.0.M3 | (问题) | Spring Cloud Stream | Horsham.M4 | (问题) | Spring Cloud Sleuth | 2.2.0.M3 | (问题) | Spring Cloud Circuitbreaker | 1.0.0.M1 |
| Spring Cloud Consul | 2.2.0.M3 | (问题) | Spring Cloud Vault | 2.2.0.M3 |
| Spring Cloud Gcp | 1.2.0.M3 |
| Spring Cloud Function | 3.0.0.M3 | (问题)

一如既往,欢迎通过 GitHubGitterStack Overflow 以及 Twitter 提供反馈意见。

以下列表展示了如何使用 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>Hoxton.M3</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 开始使用

buildscript {
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:1.0.8.RELEASE"
}
}

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

apply plugin: "io.spring.dependency-management"

dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Hoxton.M3'
}
}

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 社区所有即将举行的活动。

查看全部