【问题标题】:spring-boot dependency override : dependency upgrade best practices?spring-boot 依赖覆盖:依赖升级最佳实践?
【发布时间】:2021-01-14 07:11:46
【问题描述】:

在应用程序中覆盖 spring-boot 依赖是否安全?

spring-boot 2.3.0.RELEASE 支持 apache httpclient(4.5.12)。

在我的应用程序中使用 apache 客户端版本 4.5.13 覆盖是否安全?升级 spring-boot 依赖项还有其他最佳选择吗?

spring-boot 依赖项目:https://github.com/spring-projects/spring-boot/blob/v2.3.0.RELEASE/spring-boot-project/spring-boot-dependencies/build.gradle

【问题讨论】:

    标签: spring spring-boot


    【解决方案1】:

    如果您使用 spring-boot-dependencies 来解决依赖关系,那么一种简单的方法可以将较新版本的工件放在 spring-boot-dependencies 定义之前,并确保它们是父 pom 的一部分,如果您有更多的子 pom .

    【讨论】:

    • 你能举例说明一下吗?
    猜你喜欢
    • 1970-01-01
    • 2011-06-11
    • 2010-12-11
    • 2012-10-09
    • 2015-07-29
    • 2011-10-15
    • 1970-01-01
    相关资源
    最近更新 更多