本文的两个示例来自 Netty 官方示例,由笔者用 Maven 实现。 回写服务器 Netty 封装了 NIO 的大多数处理步骤,我们只需要将精力集中在业务代码编写上,比如,如果要创建一个最简单的服务端,只打印并丢弃客户端发送来的内容。 public class DiscardServerHandler extends ChannelInboundHandlerAdapter { @Override public void channelRead(ChannelHandlerContext ctx, O…
SpringMVC
MySQL
php
Java
SpringBoot
设计模式
Linux
Wordpress
Python
Activiti
Git
SpringCloud
debug
前端开发
Redis
Maven
生活随笔
Spring Easy
MD-img
oa-demo
i-tree
油猴脚本
bilibili-down
auto-hot-key
haokan-down
M3U-Helper
PEP中文
我的Windows软件列表
