spring 云版 Brixton.SR5 带 spring 启动 1.4
spring cloud version Brixton.SR5 with spring boot 1.4
我有一个新项目,我们正在使用 spring Brixton.SR1...
Brixton.SR1 或 SR5 是基于 1.3.5.RELEASE 构建的,但论坛说它已经用 1.4.0.RELEASE 进行了测试,因此我想使用 1.4.0.
的一些功能
<dependencyManagement>
<dependencies>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-parent</artifactId>
<version>Brixton.SR1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
..
</dependencyManagement>
然后我们添加依赖项并使用所有默认版本,例如.. spring boot 是 1.3.5.RELEASE,所以当前结构如下所示。
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
</dependency>
....
但我想使用 1.4.0。我可以排除 1.3.5 版本并使用这个新版本....我不想为所有 spring 引导工件覆盖它。例如..如下所示
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
<version>1.4.0.RELEASE</version>
</dependency>
依此类推..
宁愿为 spring-boot artifact 提供一个通用版本,它应该为所有 spring artifacts 提供默认版本 1.4.0
只需将 spring boot 的 1.4 bom 和 spring cloud 的 bom 导入您的 pom.xml:
<dependencyManagement>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>1.4.0.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Brixton.SR5</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
我有一个新项目,我们正在使用 spring Brixton.SR1... Brixton.SR1 或 SR5 是基于 1.3.5.RELEASE 构建的,但论坛说它已经用 1.4.0.RELEASE 进行了测试,因此我想使用 1.4.0.
的一些功能 <dependencyManagement>
<dependencies>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-parent</artifactId>
<version>Brixton.SR1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
..
</dependencyManagement>
然后我们添加依赖项并使用所有默认版本,例如.. spring boot 是 1.3.5.RELEASE,所以当前结构如下所示。
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
</dependency>
....
但我想使用 1.4.0。我可以排除 1.3.5 版本并使用这个新版本....我不想为所有 spring 引导工件覆盖它。例如..如下所示
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
<version>1.4.0.RELEASE</version>
</dependency>
依此类推..
宁愿为 spring-boot artifact 提供一个通用版本,它应该为所有 spring artifacts 提供默认版本 1.4.0
只需将 spring boot 的 1.4 bom 和 spring cloud 的 bom 导入您的 pom.xml:
<dependencyManagement>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>1.4.0.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Brixton.SR5</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>