摘要:
Spring Cloud 应用可能会使用 InetAddress.getLocalHost().getHostAddress() 或类似方法来获取当前机器的 IP 地址。 但在 Docker 容器环境中,这种方法可能会返回容器内部的 IP 地址,而不是宿主机的 IP 地址。 分布式应用部署到服务上, 阅读全文
摘要:
When using Spring Cloud, the 'real' configuration data is usually loaded from a server. In order to get the URL (and other connection configuration, s 阅读全文