上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: webstorm 自带的 代码 格式化 ctrl+alt+l 和同事 的vscode 代码 格式 化 不一样,导致代码 老冲突 只需要 安装 prettier 这个插件 然后在设置里面 把 这个打开就可以 啦 阅读全文
posted @ 2022-03-12 15:33 ifnk 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 如果你用archlinux ,并且docker 会 报 warning WARNING: IPv4 forwarding is disabled. Networking will not work. , 那么 你 铁定 是 sudo pacman -Syyu 的时候把 docker 更新了 ,并且你 阅读全文
posted @ 2022-03-11 22:02 ifnk 阅读(2050) 评论(0) 推荐(0) 编辑
摘要: 如图,同样都是 proto 文件 ,结果 左边的 图标是个文本 ,右边的图标是 正常的 ,文本 文件 里面 的补全 跳转 全部消失 ,并且关闭再打开 idea 也是不管用 的 ,我甚至把项目的 根目录 的 .idea文件删除 也是 一点用都没有 ,关键 你把 他换个名字 ,就好了 ,好像idea 记 阅读全文
posted @ 2022-03-11 10:18 ifnk 阅读(1767) 评论(0) 推荐(0) 编辑
摘要: 直接上代码 ,有空后面 写注释 const [fileList, setFileList] = useState<UploadFile[]>([]); <Upload name="file" multiple={false} maxCount={1} showUploadList={false} f 阅读全文
posted @ 2022-03-08 19:35 ifnk 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 直接上配置 user root; worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on 阅读全文
posted @ 2022-03-08 14:38 ifnk 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 列出所有库 \l postgres@0:users> \l + + + + + + + | Name | Owner | Encoding | Collate | Ctype | Access privileges | | + + + + + | | 123456 | postgres | UTF8 阅读全文
posted @ 2022-03-03 11:53 ifnk 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 如图 目前的流程是这样的 ,每次 调用服务 的时候 先在数据库查 ,然后 查出来 的是 自己定义的 entity ,转换成 grpc 格式 在 返回 给调用 者 需要自己 多 定义 一遍实体 ,想偷懒 不 定义 这个实体了 ,但是 用的是 gorm ,不定义实体的话 这些 go 必须要 这些特性 就 阅读全文
posted @ 2022-03-01 19:02 ifnk 阅读(1231) 评论(0) 推荐(0) 编辑
摘要: proto 生成 grpc 想 生成 java / go 的代码 的话 ,就得安装 protoc 这个程序 linux 下(arch) 安装 就是 sudo pacman -S protobuf 这样当你想生成 对应 java / go 代码 的时候 就 只要 比如 protoc -I="./pro 阅读全文
posted @ 2022-02-26 16:49 ifnk 阅读(470) 评论(0) 推荐(0) 编辑
摘要: protobuf 文件 里面 引用了 谷歌的时间戳 import "google/protobuf/timestamp.proto" makefile 文件 这样看没什么问题…… 然后 执行 make grpc-go 结果报这个错…… $ make grpc-go | xsel -ib google 阅读全文
posted @ 2022-02-26 11:31 ifnk 阅读(1736) 评论(0) 推荐(0) 编辑
摘要: 配置 prometheus 先去这个网站下载 对应版本 的 prometheus prometheus 下载 然后 tar xvfz prometheus-*.tar.gz cd prometheus-* 启动之前 先配置 vim prometheus.yml prometheus.yml # my 阅读全文
posted @ 2022-02-21 08:38 ifnk 阅读(1456) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页