netty
rain_zhao_0102
这个作者很懒,什么都没留下…
展开
-
在netty项目中使用protobuf编解码(二):netty项目中使用protobuf编解码
一、配置protobuf环境支持 idea安装protobuf插件 preference -> plugins ->搜索protobuf support安装 环境安装protoc编译工具 1.下载protoc: https://github.com/protocolbuffers/protobuf/releases 2.选择合适操作系统的zip包,解压后protoc就是可执行程序。...原创 2020-03-08 20:44:36 · 452 阅读 · 0 评论 -
在netty项目中使用protobuf编解码(一):protobuf与其他主流编解码方案的对比
为什么选择protobuf 目前java常用的编解码方案有: xml java序列化 xml json msgPack thrift protobuf 选择编解码方案的主要维度: 1.编码后占用空间: xml,java序列化 out! 2.编解码速度,占用内存: xml,java序列化 out!out! 3.多种编程语言支持: java序列化 out!out!out! xml,json best!...原创 2020-03-08 15:50:58 · 396 阅读 · 0 评论 -
快速搭建 netty服务器
前言 使用idea快速搭建基于maven的netty服务器项目 1.新建空白maven项目 file-new-project 选择maven空白项目,输入groupid和artifactid,一路点next 2.引入netty maven 依赖 pom.xml 文件加入netty-all 依赖 io.netty netty-all 4.1.42.Final </dependenci...原创 2020-02-24 12:58:38 · 1148 阅读 · 0 评论