yanghb
2023-04-20 0dfa14d469311d5b28261ee4b75703f0afd18c05
ZuulTravel/src/main/java/com/sinata/zuul/util/applets/NettyServer0.java
@@ -44,7 +44,12 @@
    * @version 1.0
    */
   public class NettyRunnable implements Runnable {
      /**
       * 获取即时通讯启动端口 add by yanghb
       */
      private Integer nettyPort = 8888;
      /**
       * 获取即时通讯启动端口 
       */
@@ -64,7 +69,7 @@
                  .childHandler(new ChildChannelHandler());
            System.out.println("服务端开启等待客户端连接 ... ...");
            //4.启动
            ChannelFuture channelFuture = serverBootstrap.bind(80).sync();
            ChannelFuture channelFuture = serverBootstrap.bind(nettyPort).sync();
            System.out.println("--Netty服务端启动成功---");
            channelFuture.channel().closeFuture().sync();
         } catch (Exception e) {