Skip to content

Commit ce8fb32

Browse files
committed
添加注释
1 parent 21f061f commit ce8fb32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

02nio/nio01/src/main/java/java0/nio01/netty/NettyHttpServer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public static void main(String[] args) throws InterruptedException {
3131
.childOption(ChannelOption.SO_KEEPALIVE, true)
3232
.childOption(ChannelOption.ALLOCATOR, PooledByteBufAllocator.DEFAULT);
3333

34+
//拉起服务,创建Nio管道
3435
b.group(bossGroup, workerGroup).channel(NioServerSocketChannel.class)
3536
.handler(new LoggingHandler(LogLevel.INFO))
3637
.childHandler(new HttpInitializer());

0 commit comments

Comments
 (0)