Eureka启动一直报错:Network level connection to peer localhost; retrying after delay
Eureka单节点启动后后台一直报错com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: 拒绝连接 (Connection refused),如下图:
解决:
client配置中添加serviceUrl:defaultZone: http://localhost:${server.port}/eureka/
原因为自己指定了端口是8781,不是默认的8761,如下图: