在SpringBoot项目中需要对接三方系统,对接协议是TCP,需实现一个TCP客户端接收 服务端发送的数据并按照16进制进行解析数据,然后对数据进行过滤,将指定类型的数据 通过mybatis存储进mysql数据库中。并且当tcp服务端断连时,tcp客户端能定时检测并发起重连。 全流程效果 注: 博客: 霸道流氓气质的博客_CSDN博客-C#,架构之路,SpringBoot领域博主 1、SpringBoot+Netty实现TCP客户端 本篇参考如下博客,在如下博客基础上进行修改 Springboot+Netty搭建基于TCP协议的客户端(二): https://www.cnblogs.com/haolb123/p/16553005.html 上面博客提供的示例代码 https://download.csdn.net/download/myyhtw/12369531 引入Netty的依赖 <!-- netty依赖 springboot2.x自动导入版本--> <dependency> <groupId>io.netty</groupId>...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile