没有可用于服务的服务器:本地主机

问题描述

我已经构建了一个 microserviceA,它调用其他服务,为此我创建了一个负载平衡 webclient 的 bean,它使用 eureka 发现客户端,然后解析主机,然后进行交换。 但同时,我需要将该服务注册到另一个应用程序,该应用程序在“localhost:8761/admin”上运行 Spring Boot 管理服务器。

现在,当 microserviceA(具有 Spring Boot 管理客户端)尝试注册时,它失败并给出错误:

No servers available for service: localhost

Failed to register application as Application(name=reaction,managementUrl=http://localhost:7019/management,healthUrl=http://localhost:7019/management/health,serviceUrl=http://localhost:7019/) at spring-boot-admin ([http://localhost:8761/admin/instances]): 503 Service Unavailable from UNKNOWN .

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...