参考文章:http://netty.io/wiki/user-guide-for-4.x.html http://blog.youkuaiyun.com/u011096030/article/details/14548621
使用版本:netty-all-4.0.18.Final.jar
注意里面提到的测试方式:
1、在命令行输入"telnet localhost 8080" 然后再输入一些东西.
2、在浏览器中输入:http://localhost:8080/
服务端涉及到的关键类和方法:
NioEventLoopGroup/EventLoopGroup ;ServerBootstrap/channel/childHandler;NioServerSocketChannel;ChannelFuture;SocketChannel/ChannelPipeline