【问题标题】:Spring boot 2.6 incompatible with Cloud Sleuth 3.1.4Spring boot 2.6 与 Cloud Sleuth 3.1.4 不兼容
【发布时间】:2022-11-14 09:46:39
【问题描述】:

我正在使用 Spring Boot 2.6 和 Spring Cloud Sleuth 3.1.4 每当我运行应用程序时,我都会得到这个:

Your project setup is incompatible with our requirements due to following reasons:

- Spring Boot [2.6.0] is not compatible with this Spring Cloud release train


Action:

Consider applying the following actions:

- Change Spring Boot version to one of the following versions [2.4.x, 2.5.x] .
You can find the latest Spring Boot versions here [https://spring.io/projects/spring-boot#learn]. 
If you want to learn more about the Spring Cloud Release train compatibility, you can visit this page [https://spring.io/projects/spring-cloud#overview] and check the [Release Trains] section.
If you want to disable this check, just set the property [spring.cloud.compatibility-verifier.enabled=false]

根据 release train 2021.0.x 应该与 Spring boot 2.6 兼容,而 sleuth 3.1.4 是其中的一部分。

我在这里错过了什么吗?

【问题讨论】:

  • 正如您所提到的,这个版本的 Spring Cloud Sleuth 应该可以工作。也许某处存在冲突的依赖关系,导致导入错误的版本。你能告诉我们你的pom.xml吗(最好是最小版本,只包括重现问题所需的依赖项)。

标签: java spring-boot spring-cloud spring-cloud-sleuth


【解决方案1】:

在兼容性矩阵中,如下所列:https://spring.io/projects/spring-cloud,在 ' 下发布列车' 部分,这应该有效。 但是,我建议您首先将 Spring Cloud 版本降低到 3.1.3。如果您仍然遇到相同的错误,请尝试使用 3.1.0 版本。在我的项目中,我在使用 spring-cloud-starter-sleuth 3.1.0 和 Spring Boot 2.6.x 时没有任何问题。

此致, 菲利普

编辑:使用 spring sleuth 3.1.4,您应该使用版本 2021.0.4 的 spring-cloud-dependencies。也许在这里你遇到了问题。

【讨论】:

    猜你喜欢
    • 2020-09-03
    • 2017-09-13
    • 1970-01-01
    • 2021-08-25
    • 2019-05-01
    • 2022-01-01
    • 2023-02-08
    • 2016-11-23
    • 2021-12-16
    相关资源
    最近更新 更多