我已经使用我的春季启动应用程序配置了consul,我有基本身份验证来访问该网址。
如果我点击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
如何在领事中提供此身份验证。
答案 0 :(得分:0)
我已经在春季启动应用程序中禁用了安全健康状况,并且它运行正常,因为检查健康状况我们不需要任何安全性