領先一步
VMware 提供培訓和認證,以加速您的進度。
了解更多謹代表社群,我很高興宣布 Spring Cloud Hoxton Release Train 的 Milestone 1 (M1) 版本已於今日釋出。 此版本可在 Spring Milestone 儲存庫中找到。 您可以查看 Hoxton 版本說明以取得更多資訊。
此里程碑版本與 Spring Boot 2.2.0.M4 相容。
Spring Cloud Gateway 已新增對 RSocket 的支援。 請期待即將發布的部落格文章。
Gradle 支援已更新至 5.5,Groovy 則更新至 2.5 版。 進行了一次重大的重構,簡化並盡可能重寫為 Java。
新增了使用 Cloud Foundry 基於 DNS 的探索的選項。 這對於容器到容器網路非常有用。
新增了對 Google Cloud Source (一個 Git 主機) 和新的 Redis 環境儲存庫的支援。
Sleuth 現在匯入 Brave BOM。
Spring Cloud Circuit Breaker 專案將脫離孵化器狀態。 Spring Cloud Loadbalancer 將會更新,以填補 Ribbon 在 Spring Cloud Netflix 中被置於維護模式後留下的漏洞。 Spring Cloud Gateway RSocket 支援將持續改進。
以下模組已在 Hoxton.M1 中更新
| 模組 | 版本 | 問題 |--- |--- |--- |--- | Spring Cloud Commons | 2.2.0.M1 | (問題) | Spring Cloud Contract | 2.2.0.M1 | (問題) | Spring Cloud Cloudfoundry | 2.2.0.M1 | (問題) | Spring Cloud Openfeign | 2.2.0.M1 | (問題) | Spring Cloud Security | 2.2.0.M1 | | Spring Cloud Config | 2.2.0.M1 | (問題) | Spring Cloud Stream | Horsham.M2 | | Spring Cloud Aws | 2.2.0.M1 | | Spring Cloud Bus | 2.2.0.M1 | | Spring Cloud Zookeeper | 2.2.0.M1 | (問題) | Spring Cloud Task | 2.2.0.M1 | (問題) | Spring Cloud Gateway | 2.2.0.M1 | (問題) | Spring Cloud Sleuth | 2.2.0.M1 | (問題) | Spring Cloud Consul | 2.2.0.M1 | (問題) | Spring Cloud Netflix | 2.2.0.M1 | (問題) | Spring Cloud Gcp | 1.2.0.M1 | | Spring Cloud Function | 3.0.0.M1 | | Spring Cloud Vault | 2.2.0.M1 | | Spring Cloud Kubernetes | 1.1.0.M1 | (問題)
一如既往,我們歡迎在 GitHub、Gitter、Stack 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.M1</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.9.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.M1'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
...
}