領先一步
VMware 提供培訓和認證,以加速您的進展。
瞭解更多我很高興代表社群宣布,Spring Cloud Finchley Release Train 的正式版本 (RELEASE) 今天已發布。該版本可在 Maven Central 中找到。您可以查看 Finchley 版本發布說明以取得更多資訊。
Camden release train 已達到生命週期結束狀態。Dalston release train 將於 2018 年 12 月達到生命週期結束狀態。Edgware release train 將遵循 Spring Boot 1.5.x 系列的生命週期結束。
Spring Cloud Function 和 Spring Cloud Gateway 是 Spring Cloud 產品組合的新增項目。該產品組合也與 Spring Boot 2.0.x 相容,這是一項重大的努力。Spring Cloud 現在具有 Java 8 的最低版本要求。
Spring Cloud Gateway 是一個基於 Spring Webflux 和 Reactor Netty 建構的 API Gateway。它是下一代閘道,可以視為 Spring Cloud Netflix Zuul 的替代品。它提供基於易於定義的謂詞的動態路由。它還提供範圍限定於每個路由的篩選器,範例包括:路徑重寫、斷路器、新增或移除標頭、速率限制和安全性。可以使用屬性或使用對 DiscoveryClient
(Eureka、Consul 和 Zookeeper)的內建支援來定義路由。
Spring Cloud Function 是一個具有以下高階目標的專案
sleuth-stream
#555 和 zipkin-stream
#727 依賴項。透過訊息傳送的 Span 只能透過原生 Zipkin 依賴項傳送到 Zipkin。spring.zipkin.sender.type=kafka
才能透過 Kafka 發送 Span #985, #1013TraceKeys
已對使用者隱藏且已棄用 #940範例:https://github.com/spring-cloud-samples/sleuth-documentation-apps、https://github.com/openzipkin/sleuth-webmvc-example
spring-cloud-netflix-hystrix-amqp
已移除ZuulFallbackProvider
已移除並替換為 FallbackProvider
#2262/hystrix.stream
現在使用 WebFlux #2629/clusters
端點,可用於探索已組態的叢集 #2223請參閱版本發布部落格文章。
WebClient
上使用 @LoadBalanced
註解stubsMode
和 contractsMode
提取 Stub 的顯式模式 #287@AutoConfigureStubRunner
做為測試片段 #473@StubRunnerPort
便利機制 #5732.18.0
#659範例: https://github.com/spring-cloud-samples/spring-cloud-contract-samples/
請參閱發佈部落格文章。
ReactiveVaultOperations
的自動配置,以在 WebClient
之上提供 Reactive API #133。範例: https://github.com/mp911de/spring-cloud-vault-config-samples/
Actuator 端點已更新為使用新的 actuator 框架。
使用新的 Reactive Cloud Foundry Java Client。
新增了對 HTTPS 執行個體和 ACL 的支援。@Scheduled
不再用於 Consul 監看。
已更新為使用 Curator 4.0.1。
新增對使用 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 |
與往常一樣,我們歡迎在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供意見反應。
若要開始使用 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'
...
}