摘要:
一、shell 示例 #!/bin/bash str="Hello" if [ -n "$str" ]; then echo "The string is not empty." else echo "The string is empty." fi 一、if 表达式说明 在 shell 脚本中,- 阅读全文
摘要:
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 + Alt + 点击鼠标左键 Ctrl + Alt + B 代码补全(自动提示) Ctrl + Space 显示建议操作 Alt + Enter 重写父类方法 (override) Ctrl + O 自动导入类(移除没用到的导入) Ctrl + Alt + O 打印System. 阅读全文