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