如何解决没有可用于服务的服务器:本地主机
我已经构建了一个 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 举报,一经查实,本站将立刻删除。