【问题标题】:Consul is throwing error of spring boot health Url (401)Consul 抛出 Spring Boot Health Url 错误(401)
【发布时间】:2018-04-12 11:43:11
【问题描述】:

我已经为我的 spring boot 应用程序配置了 consul,我有 basic Auth 来访问 url。

如果我点击 localhost:8081/health,它要求进行基本身份验证,并且 状态为 UP

但是在 consul UI 中它会抛出一个错误

HTTP GET http://192.168.1.155:8081/health: 401  Output: HTTP Status 401 - Full authentication is required to access this resource

如何在 consul 中提供此身份验证。

【问题讨论】:

    标签: spring-boot spring-cloud-consul


    【解决方案1】:

    我在 Spring Boot 应用程序中禁用了安全健康,它工作正常,因为检查健康我们不需要任何安全

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-08-05
      • 2019-10-13
      • 2019-05-16
      • 2020-07-18
      • 2017-06-09
      • 2022-01-20
      • 2020-10-25
      相关资源
      最近更新 更多