xuhy
2023-10-19 78851285202a040f8ddf998c067cd462874c1cb9
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) {