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(8888).sync(); ChannelFuture channelFuture = serverBootstrap.bind(nettyPort).sync(); System.out.println("--Netty服务端启动成功---"); channelFuture.channel().closeFuture().sync(); } catch (Exception e) { ZuulTravel/src/main/java/com/sinata/zuul/util/echo/NettyServer.java
@@ -48,7 +48,7 @@ public class NettyRunnable implements Runnable { /** * 获取即时通讯启动端口 端口 * 获取即时通讯启动端口 add by yanghb */ private Integer nettyPort = 9999; @Override