摘要:
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 阅读全文
摘要:
代码补全(自动提示) Ctrl + Space 显示建议操作 Alt + Enter 重写父类方法 (override) Ctrl + O 自动导入类(移除没用到的导入) Ctrl + Alt + O 打印System.out.println() sout souf 返回上一次光标所在位置(跟踪代码 阅读全文