Spring cloud Eureka客户端在注册服务器之前做了什么?
当我研究spring cloud Eureka的Hello world案例时,客户端可以注册服务器,而无需在客户端配置文件中定义defaultZone 我猜客户端会搜索它可以访问的所有服务器和端口吗?对吗?如果没有,客户端如何找到服务器并进行注册?通过查看它们为Spring cloud Eureka客户端在注册服务器之前做了什么?,spring-cloud,netflix-eureka,Spring Cloud,Netflix Eureka,当我研究spring cloud Eureka的Hello world案例时,客户端可以注册服务器,而无需在客户端配置文件中定义defaultZone 我猜客户端会搜索它可以访问的所有服务器和端口吗?对吗?如果没有,客户端如何找到服务器并进行注册?通过查看它们为eureka.serviceUrl.default定义的默认值: # Since shouldUseDns is false, we use the following properties to explicitly specify t
eureka.serviceUrl.default
定义的默认值:
# Since shouldUseDns is false, we use the following properties to explicitly specify the route to the eureka servers
eureka.serviceUrl.default=http://localhost:8080/eureka/v2/
它默认为
http://localhost:8761