# springboot-netty-protobuf **Repository Path**: bladeandmaster/springboot-netty-protobuf ## Basic Information - **Project Name**: springboot-netty-protobuf - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # springboot-netty-protobuf #### 一、说明 springboot集成netty,使用protobuf作为数据交换格式,可以用于智能终端云端服务脚手架。 - 已完成功能 1. 接入验证 - 心跳检测 - 断开重连 - 上传数据 - 主动推送功能 - 待完成 1. SSL验证 - 上传文件 #### 二、开发环境 - JDK8+ - Eclipse Neon.2 Release - springboot1.4.2 - Netty4.1.6.Final - protobuf-java3.0.0 #### 三、使用方法 项目里面包含Socket客户端和服务端 - 找到com.netty.server.Application类右键debug as启动SocketServer - 找到com.netty.client.NettyClient类右键debug as启动客户端 ### 四、protobuf用法 pro文件编译工具见protoc目录: protoc.exe为windows平台编译工具 protoc --java_out=./ Command.proto protoc --java_out=./ Message.proto 其中Message.proto依赖Command.proto,但是生成顺序无先后。 生成完之后,把整个com.netty.common.protobuf包的内容拷贝到src/main/java下