在初始化class中,添加
pipeline .addLast("decoder", new HttpRequestDecoder()); pipeline .addLast("encoder", new HttpResponseEncoder());
去掉
pipeline.addLast("httpServerCode",new HttpServerCodec());
在初始化class中,添加
pipeline .addLast("decoder", new HttpRequestDecoder()); pipeline .addLast("encoder", new HttpResponseEncoder());
去掉
pipeline.addLast("httpServerCode",new HttpServerCodec());