首页 文章

Eureka Client在注册服务器之前做了什么?

提问于
浏览
0

当我研究Spring world Eureka service-registration-and-discovery的Hello world案例时,客户端可以在客户端配置文件中注册服务器而不定义 defaultZone .

我想客户端会搜索它可以访问的所有服务器和端口?这是对的吗?如果没有,客户端如何找到服务器并注册?

1 回答

  • 0

    通过查看Eureka Repo,他们为 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/
    

相关问题