摘要: 导包go原生sdk的包还有 "github.com/go-sql-driver/mysql" import ( "database/sql" "fmt" _ "github.com/go-sql-driver/mysql" ) 构建常量 const ( dbhost = "xx.xx.xx.xx:3 阅读全文
posted @ 2023-03-17 23:28 freedomlog 阅读(184) 评论(0) 推荐(0)
摘要: XML格式化 https://c.runoob.com/front-end/710/ 文档翻译 https://translate.google.com/ 大小写转换等 https://www.iamwawa.cn/daxiaoxie.html 在线去重 https://tool.lanrentuk 阅读全文
posted @ 2023-03-15 17:37 freedomlog 阅读(35) 评论(0) 推荐(0)
摘要: 查看分区大小 df -h 端口情况 ss -tnl lsof -i:端口号 lsof -i:8080:查看8080端口占用 lsof abc.txt:显示开启文件abc.txt的进程 lsof -c abc:显示abc进程现在打开的文件 lsof -c -p 1234:列出进程号为1234的进程所打 阅读全文
posted @ 2023-03-15 17:27 freedomlog 阅读(56) 评论(0) 推荐(0)
摘要: 版本 Unirest目前版本类型 <dependency> <groupId>com.mashape.unirest</groupId> <artifactId>unirest-java</artifactId> <version>1.4.9</version> </dependency> <dep 阅读全文
posted @ 2023-03-03 00:31 freedomlog 阅读(961) 评论(0) 推荐(0)
摘要: 链路日志 在日常项目中我们大量使用日志来进行记录服务运行情况, 但是当数据量变大, 接口频次变高,就会出现线程号重复的情况,在排查问题是不能及时定位到相关点上。基于此场景下,MDC就应运而生了, 我也是最近才在项目中引入的;之前项目一直没有使用,引入后,查询日志什么的也都方便很多。 新项目使用 涉及 阅读全文
posted @ 2023-03-02 16:02 freedomlog 阅读(338) 评论(0) 推荐(0)