Spring Cloud 客户端报错:- was unable to send heartbeat!

微服务启动时报错:
2021-05-18 21:25:44.644 WARN 5452 — [tbeatExecutor-0] c.n.d.s.t.d.RetryableEurekaHttpClient : Request execution failed with message: null
2021-05-18 21:25:44.644 ERROR 5452 — [tbeatExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_SERVICE-HI/LAPTOP-3BVBK0KA:service-hi:8763 - was unable to send heartbeat!

问题原因
Eureka客户端无法发送心跳到服务端

解决方案
查看客户端启动类是否添加服务注册、发现注解。

@EnableEurekaClient
@EnableDiscoveryClient

你可能感兴趣的:(Spring,Cloud,eureka,zookeeper,java,bug,linux)