Spring Cloud Finchley.RELEASE 已釋出

釋出 | Spencer Gibb | 2018 年 6 月 19 日 | ...

我代表社群很高興地宣佈,Spring Cloud Finchley 釋出列車的通用版本 (RELEASE) 今天已可用。該版本可在 Maven Central 中找到。您可以在 Finchley 釋出說明中檢視更多資訊

釋出列車版本的生命週期公告

Camden 釋出列車已達到生命週期結束狀態。Dalston 釋出列車將於 2018 年 12 月達到生命週期結束狀態。Edgware 釋出列車將遵循 Spring Boot 1.5.x 系列的生命週期結束。

Finchley 釋出列車的顯著變化

Spring Cloud Function 和 Spring Cloud Gateway 是 Spring Cloud 產品組合的新增成員。該組合還與 Spring Boot 2.0.x 相容,這是一項重要的工作。Spring Cloud 現在要求最低 Java 版本為 8。

Spring Cloud Gateway

Spring Cloud Gateway 是基於 Spring Webflux 和 Reactor Netty 構建的 API 閘道器。它是下一代閘道器,可以被視為 Spring Cloud Netflix Zuul 的替代品。它基於易於定義的謂詞提供動態路由。它還提供作用域限定在每個路由的過濾器,例如:路徑重寫、斷路器、新增或刪除頭部、限流和安全。路由可以使用屬性或使用包含的對 DiscoveryClient(Eureka、Consul & Zookeeper)的支援來定義。

Spring Cloud Function

Spring Cloud Function 是一個具有以下高階目標的專案

  • 透過函式促進業務邏輯的實現。
  • 將業務邏輯的開發生命週期與任何特定的執行時目標解耦,以便相同的程式碼可以作為 Web 端點、流處理器或任務執行。
  • 支援跨無伺服器提供商的統一程式設計模型,以及獨立執行(本地或在 PaaS 中)的能力。
  • 在無伺服器提供商上啟用 Spring Boot 功能(自動配置、依賴注入、度量)。

Spring Cloud Sleuth

  • 使用 Brave 重寫 #829,遷移指南 https://github.com/spring-cloud/spring-cloud-sleuth/wiki/Spring-Cloud-Sleuth-2.0-Migration-Guide
  • 移除 sleuth-stream #555zipkin-stream #727 依賴。透過訊息傳遞的 Span 只能透過原生的 Zipkin 依賴傳送到 Zipkin。
  • spring.zipkin.sender.type=kafka 需要明確設定,才能透過 Kafka 傳送 Span #985, #1013
  • 新增 WebClient.Builder 支援 #779
  • 跟蹤標籤考慮引數化 URL #802
  • 新增對 NettyClient 檢測的支援 - 允許對 Spring Cloud Gateway 進行檢測 #806
  • 修復所有早期 bean 初始化問題 #870
  • 新增 spring-kafka 支援 #896
  • 新增 spring-rabbitmq 支援 #883
  • 新增對 Apache HttpClient 的支援 #685
  • 新增 OpenTracing 支援 #599
  • 新增對 AWS X-Ray 的支援 #459
  • TraceKeys 對使用者隱藏並已棄用 #940
  • 新增對 Dubbo 的支援 #934

示例:https://github.com/spring-cloud-samples/sleuth-documentation-apps, https://github.com/openzipkin/sleuth-webmvc-example

Spring Cloud Config

  • 允許跳過 GitVault 後端的 SSL 驗證
  • Git 後端現在有一個重新整理率屬性 #749
  • 新增對 Gitee webhooks 的支援 #898

Spring Cloud Netflix

  • 在 Edgware 中棄用的 Starter 已被移除
  • spring-cloud-netflix-hystrix-amqp 已被移除
  • ZuulFallbackProvider 已被移除,並替換為 FallbackProvider #2262
  • /hystrix.stream 現在使用 WebFlux #2629
  • Turbine 現在有一個 /clusters 端點,可用於發現配置的叢集 #2223
  • Spring Cloud OpenFeign 已遷移到其自己的專案
  • Zuul 指標現在使用 Micrometer
  • Turbine Stream 支援已重寫為使用 Spring Webflux。

Spring Cloud Task

請參閱釋出部落格文章

Spring Cloud Commons

  • 您現在可以在 WebClient 上使用 @LoadBalanced 註解
  • 重試功能已簡化 #331

Spring Cloud Contract

  • 新增 RestAssured 和 RestDocs 的支援 #334
  • 移除 Camel 支援 #386
  • 透過 stubsModecontractsMode 引入存根獲取的顯式模式 #287
  • 使 @AutoConfigureStubRunner 成為測試 slice #473
  • 允許啟動同一存根構件的多個版本 #474
  • 使集合斷言方法更詳細 #441
  • 新增 @StubRunnerPort 方便查詢存根的機制 #573
  • 允許在測試執行後儲存下載的構件 #512
  • 新增 HTTP 狀態的輔助方法 #575
  • 更新了文件 #570 並添加了 3 秒和 3 分鐘快速導覽 #549
  • 將 WireMock 升級到 2.18.0 #659
  • 支援 Pact v3 #406 和 Pact Broker #191
  • 從 Git 倉庫上傳和獲取存根的選項 #596

示例:https://github.com/spring-cloud-samples/spring-cloud-contract-samples/

Spring Cloud Stream

請參閱釋出部落格文章

Spring Cloud Vault

  • 升級到 Spring Vault 2.0 #203
  • ReactiveVaultOperations 的自動配置,在 WebClient 之上提供響應式 API #133
  • 新增響應式健康指示器 #221
  • AppRole 的 RoleId 和 SecretId 認證識別符號的 Pull、Wrapped 和 Provided 模式 #174
  • 支援 Vault 的通用資料庫後端 #169
  • 在支援的屬性源中保留 JSON 資料型別 #189
  • 支援 Vault 的版本化 Key/Value 後端 #209
  • 將 Spring Cloud Vault Connectors 2.0.0.RELEASE 升級到 Spring Cloud Vault 2.0.0.RELEASE。

示例:https://github.com/mp911de/spring-cloud-vault-config-samples/

Spring Cloud Bus

Actuator 端點已更新為使用新的 Actuator 框架。

Spring Cloud Openfeign

  • 在 Feign 配置屬性中支援 encoder, decoder 和 contract #2687

Spring Cloud Cloudfoundry

使用了新的響應式 Cloud Foundry Java Client。

Spring Cloud Consul

添加了對 HTTPS 例項和 ACL 的支援。`@Scheduled` 不再用於 Consul watch。

Spring Cloud Zookeeper

更新為使用 Curator 4.0.1。

Spring Cloud Aws

添加了對使用 AWS Parameter Store 的 PropertySourceLocator 的支援。添加了對 CloudWatch 指標的 Micrometer 支援。

以下模組作為 Finchley.RELEASE 的一部分進行了更新

模組 版本
Spring Cloud Consul 2.0.0.RELEASE
Spring Cloud Gateway 2.0.0.RELEASE
Spring Cloud Function 1.0.0.RELEASE
Spring Cloud Zookeeper 2.0.0.RELEASE
Spring Cloud Sleuth 2.0.0.RELEASE
Spring Cloud Aws 2.0.0.RELEASE
Spring Cloud Config 2.0.0.RELEASE
Spring Cloud Cloudfoundry 2.0.0.RELEASE
Spring Cloud Security 2.0.0.RELEASE
Spring Cloud Netflix 2.0.0.RELEASE
Spring Cloud Task 2.0.0.RELEASE
Spring Cloud Commons 2.0.0.RELEASE
Spring Cloud Contract 2.0.0.RELEASE
Spring Cloud Stream Elmhurst.RELEASE
Spring Cloud Vault 2.0.0.RELEASE
Spring Cloud Bus 2.0.0.RELEASE
Spring Cloud Openfeign 2.0.0.RELEASE

一如既往,我們歡迎透過 GitHubGitterStack OverflowTwitter 提供反饋。

使用 Maven 和 BOM(僅依賴管理)入門


<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>Finchley.RELEASE</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.5.RELEASE"
    }
}



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

dependencyManagement {
    imports {
        mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Finchley.RELEASE'
    }
}

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 社群所有即將舉行的活動。

檢視全部