摘要: 动态更新配置的步骤 注意:Viper本身不是并发安全的,在实现配置动态更新时,要注意采用锁机制等方式来保证Viper并发读写的安全。 1,更新配置源中的配置 在Viper支持的配置源中,命令行参数、环境变量是在进程启动时一次性读取的,不支持动态更新。本地配置文件和远程配置文件可以支持动态更新,直接修 阅读全文
posted @ 2024-12-25 17:51 惜阳茕影 阅读(18) 评论(0) 推荐(0) 编辑
摘要: k8s相关 alias for kubectl commands cat >> ~/.bashrc << EOF alias k='kubectl' alias kg='kubectl get' alias kd='kubectl describe pods' alias ke='kubectl e 阅读全文
posted @ 2024-12-17 16:07 惜阳茕影 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 流程图 graph TB A(接口请求) --> B[参数校验] B[参数校验] --> C{校验通过?} C{校验通过?} -- 通过 --> d[处理业务逻辑] C{校验不通过} -- 不通过 --> e[结束] d[处理业务逻辑] --> e(结束) graph TB A(接口请求) --> 阅读全文
posted @ 2024-12-09 20:03 惜阳茕影 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 部署 https://helm.sh/zh/docs/helm/helm_install/ helm install polaris-controller . 更新 helm upgrade -i polaris-controller . 查看部署列表 helm list 卸载 helm unins 阅读全文
posted @ 2024-12-05 19:46 惜阳茕影 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 创建分支 // 在本地新建一个分支 git branch branchName // 切换到新分支 git checkout branchName // 新创建分支并切换 git checkout -b branchName 暂存修改并创建新分支后保存 修改都在master分支, 不可以提交,还是要 阅读全文
posted @ 2024-12-05 16:56 惜阳茕影 阅读(6) 评论(0) 推荐(0) 编辑
摘要: github远程仓库设置 https://docs.github.com/zh/get-started/getting-started-with-git/managing-remote-repositories git源和上游分支设置 $ git remote set-url origin git@ 阅读全文
posted @ 2024-12-05 16:41 惜阳茕影 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 报错内容 spring-boot 3.2.3 Caused by: java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Ei 阅读全文
posted @ 2024-12-02 20:32 惜阳茕影 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 题目 "977. Squares of a Sorted Array" Given an array of integers A sorted in non decreasing order, return an array of the squares of each number, also i 阅读全文
posted @ 2019-05-09 09:30 惜阳茕影 阅读(147) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示