上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: 在js中 使用 protobuf 正常情况下 下载对应的protoc 文件 下载地址:https://repo1.maven.org/maven2/com/google/protobuf/protoc/ messagebody.proto syntax = "proto3"; message mes 阅读全文
posted @ 2020-06-05 15:29 JC-0527 阅读(848) 评论(0) 推荐(0) 编辑
摘要: protobuf优点 1.性能好/效率高 2.有代码生成机制 3.支持向后兼容和向前兼容 4.支持多种编程语言 protobuf缺陷 1.二进制格式导致可读性差 2.缺乏自描述 maven 整合 protobuf-plugin pom.xml <properties> <!--protobuf 版本 阅读全文
posted @ 2020-06-05 13:30 JC-0527 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 最近在看webSocket netty socket服务 刚起步 在使用websocket时 思考 如果是 使用其他socketclient连接 非web端 是否能接收到socket的数据 经过搜索 找到了一个大佬的博客 (如果不允许请联系我) 拿来借鉴运行下,保存到自己的博客 方便以后的查看 we 阅读全文
posted @ 2020-05-20 17:04 JC-0527 阅读(1879) 评论(0) 推荐(0) 编辑
摘要: 异常 Exception in thread "Thread 5" java.lang.NoSuchMethodError: io.netty.util.concurrent.SingleThreadEventExecutor.(Lio/netty/util/concurrent/EventExec 阅读全文
posted @ 2020-05-19 09:49 JC-0527 阅读(2518) 评论(0) 推荐(0) 编辑
摘要: 目标 : 爬取某网站 并导出到excel 方法 : 使用 JSOUP 爬取网站 ,使用AlibabaExcel 导出到文件 实现 : 1.pom.xml 应用对应jar包 <dependency> <groupId>org.jsoup</groupId> <artifactId>jsoup</art 阅读全文
posted @ 2020-05-13 14:40 JC-0527 阅读(499) 评论(0) 推荐(0) 编辑
摘要: nginx 配置https server { listen 443 ssl; server_name www.aidici.com; ssl_certificate D:\aidici.com_chain.crt; ssl_certificate_key D:\aidici.com_key.key; 阅读全文
posted @ 2020-05-07 16:13 JC-0527 阅读(833) 评论(0) 推荐(0) 编辑
摘要: 使用 OpenResty 可以不用再次编译nginx 就能集成对应lua环境 可以扩展的模块比较丰富 1.使用redis 控制限流 ip 访问频度 创建对应lua脚本 access_by_limit_frequency.lua local function close_redis(red) if n 阅读全文
posted @ 2020-05-07 15:37 JC-0527 阅读(816) 评论(0) 推荐(0) 编辑
摘要: nginx 使用 openRestry 版本 在配置文件中设置 路径加密 文件 location ^~/group/ { access_by_lua ' 获取请求路径,不包括参数。例如:/group/456.png local uri = ngx.var.uri; 获取请求参数 local args 阅读全文
posted @ 2020-05-06 09:15 JC-0527 阅读(1933) 评论(0) 推荐(0) 编辑
摘要: 1. prometheus 官网 https://prometheus.io/docs/introduction/overview/ 2. GrafanaLabs 官网 https://grafana.com/ 3. SpringBoot使用Prometheus Maven 因springboot中 阅读全文
posted @ 2020-01-14 18:55 JC-0527 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 1. 安装时 安装方法 1.使用dmg 文档 2.使用 远程命令安装 远程命令安装 brew install mysql 安装完成后 可以直接启动 mysql.server start 安装时会提供对应密码的 设置 使用命令 安装 只会安装最新的 版本 使用低版本的mysql Navicat 时 会 阅读全文
posted @ 2020-01-13 17:40 JC-0527 阅读(193) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页