打赏
摘要: Gorm 建立了对 Logger 的支持,默认模式只会在错误发生的时候打印日志。可以通过gorm SetLogger(log logger)方法 改变gorm 打日志的行为。 gorm 中 logger的接口: type logger interface { Print(ctx context.Co 阅读全文
posted @ 2020-07-03 14:14 苍山落暮 阅读(8652) 评论(0) 推荐(0)
摘要: SQL清空全部表数据 先执行select语句生成所有truncate语句 语句格式: select CONCAT('truncate TABLE ',table_schema,'.',TABLE_NAME, ';') from INFORMATION_SCHEMA.TABLES where tabl 阅读全文
posted @ 2020-07-03 09:24 苍山落暮 阅读(2358) 评论(0) 推荐(0)
摘要: (1.)免费证书申请 //阿里云证书 https://juejin.im/post/5d00f8706fb9a07ede0b3c90 https://common-buy.aliyun.com/?spm=5176.2020520163.cas.3.4bf91BFD1BFDcm&commodityCo 阅读全文
posted @ 2020-07-03 09:22 苍山落暮 阅读(311) 评论(0) 推荐(0)
摘要: Nginx ingress 跨域: nginx.ingress.kubernetes.io/cors-allow-headers: >- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache 阅读全文
posted @ 2020-07-03 09:18 苍山落暮 阅读(3279) 评论(0) 推荐(0)