提升自我
VMware 提供培训和认证,助您快速进步。
了解更多我代表社区宣布,Spring Cloud Hoxton 发布列车的 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 将更新以填补 Spring Cloud Netflix 中 Ribbon 置于维护模式后留下的空白。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'
...
}