【问题标题】:Consul issue with spring boot 2.0.0Spring Boot 2.0.0 的 Consul 问题
【发布时间】:2018-10-18 10:06:05
【问题描述】:

我刚刚迁移到最新的 spring boot 2.0.1.RELEASE 并开始使用云版本“Finchley.RC1”。我使用领事作为配置和服务注册/发现服务器。但是一旦我启动应用程序,它就会尝试从 "localhost:8888" 加载配置,这是用于 eureka 的。我在 application.properties 中配置了领事主机和端口,但我仍然看到相同的行为。

我通过搜索发现 spring cloud consul 中存在一个错误,因此发生了这种情况,并且已在 2.0.0.RC1(候选发布版本)中的以下提交中修复。

Commit URL

所以我的问题是,现在有什么稳定版本可用于 spring cloud consul,我可以在最新的 spring boot 中使用?

【问题讨论】:

    标签: spring-boot spring-cloud consul spring-cloud-consul


    【解决方案1】:

    是的,现在有稳定版本可以使用:

    • Spring Cloud Finchley.RELEASE(包括 Spring Cloud Consul 2.0.0.RELEASE)
    • Spring Boot 2.0.3.RELEASE

    查看完整列表: https://github.com/spring-projects/spring-cloud/wiki/Spring-Cloud-Finchley-Release-Notes#finchleyrelease

    【讨论】:

      猜你喜欢
      • 2018-03-13
      • 2018-01-20
      • 2016-11-28
      • 2018-08-13
      • 1970-01-01
      • 1970-01-01
      • 2017-01-16
      • 2016-12-24
      • 2020-01-16
      相关资源
      最近更新 更多