摘要: Spring Cloud 应用可能会使用 InetAddress.getLocalHost().getHostAddress() 或类似方法来获取当前机器的 IP 地址。 但在 Docker 容器环境中,这种方法可能会返回容器内部的 IP 地址,而不是宿主机的 IP 地址。 分布式应用部署到服务上, 阅读全文
posted @ 2025-01-09 15:39 炎黄子孙,龙的传人 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2025-01-09 11:54 炎黄子孙,龙的传人 阅读(11) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示