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