【问题标题】:Microservice: consul couldn't check health of service when enabling https微服务:启用 https 时,领事无法检查服务的健康状况
【发布时间】:2015-12-01 00:32:47
【问题描述】:

我正在尝试在基于 Spring Cloud 的微服务应用程序中使用 Consul。 但是当我在 tomcat 服务器中启用 HTTPS 时,consul 无法检查服务的运行状况(因为他们尝试使用 http 检查运行状况)。我收到了这个错误:

 ani got this error: gent: http request failed 'xxxxxxxxxxxx.dsk.eur.msd.world.xxxxxx:1235/health'

【问题讨论】:

    标签: spring-cloud service-discovery consul


    【解决方案1】:

    尝试设置spring.cloud.consul.discovery.scheme=https

    【讨论】:

    猜你喜欢
    • 2016-08-05
    • 2021-12-18
    • 2019-06-05
    • 2020-09-22
    • 1970-01-01
    • 1970-01-01
    • 2021-01-18
    • 1970-01-01
    • 2023-03-22
    相关资源
    最近更新 更多