Spring Cloud 与 Spring 平台 BOM

标签 spring spring-boot spring-cloud

我有一些与 spring“ Material list ”的依赖管理相关的问题:

  • 我应该将两者都用于完整的 spring 依赖管理吗?
  • 它们不兼容吗?任何问题?

  • 我们的项目使用了几个由平台 BOM 管理的依赖项

    最佳答案

    来自 documentation

    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/

    相关文章:

    spring-cloud - 为我的 zuul 应用程序替换 RibbonRoutingFilter

    java - Spring REST WS : jersey vs resteasy vs reSTLet vs apache cxf vs Spring WS

    spring - 有没有一种方法可以将属性文件包含在另一个属性文件中?

    java - Json 忽略实体中的集合

    spring-boot - 至少一次传递的 RabbitMQ 消息可靠性

    spring-security - 我如何重新加载 websecurityconfig 运行时

    spring - GAE中使用Spring Security遇到的问题

    java - Rest 模板从图像 URL 检索状态代码

    spring - 如何使用 spring cloud config server 和 spring cloud bus 和 rabbit mq 更新配置?

    java - 无法解析值 'message' 中的占位符 "${message}"