guoyujie
2025-11-17 7fdc12195ab810476f01f6d332cbcd0a271effdb
north-glass-erp/src/main/java/com/example/erp/tools/netty/NettyServer.java
@@ -1,18 +1,5 @@
package com.example.erp.tools.netty;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.handler.codec.http.HttpObjectAggregator;
import io.netty.handler.codec.http.HttpServerCodec;
import io.netty.handler.codec.http.websocketx.WebSocketServerProtocolHandler;
import io.netty.handler.stream.ChunkedWriteHandler;
/**
 * NettyServer Netty服务器配置
 * @author zhengkai.blog.csdn.net
@@ -25,7 +12,7 @@
        this.port = port;
    }
    public void start() throws Exception {
    /*public void start() throws Exception {
        EventLoopGroup bossGroup = new NioEventLoopGroup();
        EventLoopGroup group = new NioEventLoopGroup();
@@ -56,7 +43,7 @@
            group.shutdownGracefully().sync(); // 释放线程池资源
            bossGroup.shutdownGracefully().sync();
        }
    }
    }*/
}