抢先一步
VMware 提供培训和认证,助您加速进步。
了解更多我代表社区高兴地宣布,Spring Cloud 2022.0.2 发布列车的通用可用版本 (RELEASE) 于今日发布。该版本可在 Maven Central 中找到。您可以查看 2022.0.2 的发布说明了解更多信息。
在此查看此版本中包含的所有问题和拉取请求:这里。
在批处理模式下添加 DLQ 支持 错误修复和增强功能
spring.config.import=consul:
时未读取 CONSUL_TOKEN
的问题 (738)agentCheckPass
(770)以下模块已作为 2022.0.2 的一部分进行了更新
模块 | 版本 | 问题 |
---|---|---|
Spring Cloud Vault | 4.0.1 | (问题) |
Spring Cloud Circuitbreaker | 3.0.1 | |
Spring Cloud Kubernetes | 3.0.2 | (问题) |
Spring Cloud Task | 3.0.2 | (问题) |
Spring Cloud Function | 4.0.2 | (问题) |
Spring Cloud Commons | 4.0.2 | (问题) |
Spring Cloud Openfeign | 4.0.2 | (问题) |
Spring Cloud Stream | 4.0.2 | |
Spring Cloud Consul | 4.0.2 | (问题) |
Spring Cloud Contract | 4.0.2 | (问题) |
Spring Cloud Gateway | 4.0.4 | (问题) |
Spring Cloud Config | 4.0.2 | (问题) |
Spring Cloud Netflix | 4.0.1 | (问题) |
Spring Cloud Build | 4.0.2 |
一如既往,欢迎通过 GitHub、Gitter、Stack Overflow 或 Twitter 提供反馈。
使用 Maven 和 BOM(仅依赖管理)入门
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2022.0.2</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
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.5'
id 'io.spring.dependency-management' version '1.1.0'
}
ext {
set('springCloudVersion', "2022.0.2")
}
dependencies {
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
// ...
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}