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 儀器化(instrumentation)的支援 - 允許對 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 Webhook 的支援 #898

Spring Cloud Netflix

  • Edgware 中已棄用的啟動器已被移除
  • 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 設為測試片段 #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 身份驗證識別符號的拉取、封裝和提供模式 #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 配置屬性中支援編碼器、解碼器和契約 #2687

Spring Cloud Cloudfoundry

使用了新的響應式 Cloud Foundry Java 客戶端。

Spring Cloud Consul

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

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

檢視所有