springboot-netty框架搭建socket-websocket同端口服务端
项目需求:搭建服务与设备进行socket通信;与api服务端进行http请求(或websocket)通信传递消息;项目环境:IDEA+Maven ;springboot;mybatis;netty;1.服务端DiscardServer/** * 丢弃任何进入的数据 启动服务端的DiscardServerHandler */@Componentpublic class Dis...
原创
2020-03-26 17:21:22 ·
5024 阅读 ·
3 评论