我有一些与 spring“ Material list ”的依赖管理相关的问题:
我们的项目使用了几个由平台 BOM 管理的依赖项
最佳答案
The Spring Cloud Dependencies BOM must go first, so that its dependencies have precedence of the Spring IO Platform dependencies.
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Brixton.SR1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.spring.platform</groupId>
<artifactId>platform-bom</artifactId>
<version>2.0.5.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
它was determined平台无法管理 spring cloud 的依赖项。这是使用 spring 平台和 spring cloud 的推荐方式。
关于Spring Cloud 与 Spring 平台 BOM,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38033054/