12 2024 档案
摘要:Ref GoLang 使用 goroutine 停止的几种办法 Golang channel 三大注意事项
阅读全文
摘要:动态更新配置的步骤 注意:Viper本身不是并发安全的,在实现配置动态更新时,要注意采用锁机制等方式来保证Viper并发读写的安全。 1,更新配置源中的配置 在Viper支持的配置源中,命令行参数、环境变量是在进程启动时一次性读取的,不支持动态更新。本地配置文件和远程配置文件可以支持动态更新,直接修
阅读全文
摘要:k8s相关 alias for kubectl commands cat >> ~/.bashrc << EOF alias k='kubectl' alias kg='kubectl get' alias kd='kubectl describe pods' alias ke='kubectl e
阅读全文
摘要:流程图 graph TB A(接口请求) --> B[参数校验] B[参数校验] --> C{校验通过?} C{校验通过?} -- 通过 --> d[处理业务逻辑] C{校验不通过} -- 不通过 --> e[结束] d[处理业务逻辑] --> e(结束) graph TB A(接口请求) -->
阅读全文
摘要:部署 https://helm.sh/zh/docs/helm/helm_install/ helm install polaris-controller . 更新 helm upgrade -i polaris-controller . 查看部署列表 helm list 卸载 helm unins
阅读全文
摘要:创建分支 // 在本地新建一个分支 git branch branchName // 切换到新分支 git checkout branchName // 新创建分支并切换 git checkout -b branchName 暂存修改并创建新分支后保存 修改都在master分支, 不可以提交,还是要
阅读全文
摘要:github远程仓库设置 https://docs.github.com/zh/get-started/getting-started-with-git/managing-remote-repositories git源和上游分支设置 $ git remote set-url origin git@
阅读全文
摘要:报错内容 spring-boot 3.2.3 Caused by: java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Ei
阅读全文