【问题标题】:Possible to use Spring Boot 1.3.0.M1 with Spring Cloud?可以将 Spring Boot 1.3.0.M1 与 Spring Cloud 一起使用吗?
【发布时间】:2015-09-03 01:10:06
【问题描述】:

我希望能够开始使用 Spring Boot 1.3.0.M1(以及扩展 Spring 4.2.0.RC1)以及 Spring Cloud(配置服务器、eureka、ribbon、feign 和 zuul)。

我使用的是 gradle 构建,所以最初我使用的依赖管理插件是这样的:

dependencyManagement {
    imports {
        mavenBom "org.springframework.cloud:spring-cloud-starter-parent:1.0.3.BUILD-SNAPSHOT"
    }
}

但这意味着无论我尝试包含什么版本的 spring boot,它都会被覆盖。

相反,我尝试手动包含云启动器在构建中包含的所有依赖项,并单独包含 spring boot 1.3.0.M1,但在服务器启动时会导致:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'servoMetricCollector' defined in class path resource [org/springframework/cloud/netflix/servo/ServoMetricsAutoConfiguration.class]

任何建议将不胜感激。

【问题讨论】:

    标签: spring-boot spring-cloud


    【解决方案1】:

    有一个open issue 支持 Spring Boot 1.3.0。

    【讨论】:

    • 谢谢! Spring Boot 1.3.0 确实增加了一些好东西,期待它什么时候能够与 Spring Cloud 集成。
    猜你喜欢
    • 2019-12-21
    • 1970-01-01
    • 1970-01-01
    • 2018-07-16
    • 2011-11-30
    • 1970-01-01
    • 2021-09-03
    • 2019-02-21
    • 1970-01-01
    相关资源
    最近更新 更多