0
点赞
收藏
分享

微信扫一扫

Eureka服务提供者注册时报错:Request execution error

诗远 2022-05-04 阅读 82

项目场景:

在微服务场景下学习把服务提供者注册到Eureka注册中心时而报错:


问题描述

报错主要信息:

Eureka注册中自定义的 http://127.0.0.1:10086/eureka 注册中心地址无效,而用了springcloud默认的注册中心地址–http://localhost:8761/eureka

2022-05-04 16:33:35.151 ERROR 30696 --- [           main] c.n.d.s.t.d.RedirectingEurekaHttpClient  : Request execution error. endpoint=DefaultEndpoint{ serviceUrl='http://localhost:8761/eureka/}

com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect

原因分析:

在这里插入图片描述

报错原因:
Eureka注册中自定义的 http://127.0.0.1:10086/eureka 注册中心地址无效,而用了springcloud默认的注册中心地址–http://localhost:8761/eureka


解决方案:

在这里插入图片描述

举报

相关推荐

0 条评论