yanghb
2023-04-21 3512465d98321e55198a482b8f4d1cb2c97095a5
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 = 9999;
      /**
       * 获取即时通讯启动端口 
       */
@@ -64,7 +69,7 @@
                  .childHandler(new ChildChannelHandler());
            System.out.println("服务端开启等待客户端连接 ... ...");
            //4.启动
            ChannelFuture channelFuture = serverBootstrap.bind(8888).sync();
            ChannelFuture channelFuture = serverBootstrap.bind(nettyPort).sync();
            System.out.println("--Netty服务端启动成功---");
            channelFuture.channel().closeFuture().sync();
         } catch (Exception e) {