From 8ae14aaf27d645f8897b5b7305880d4df37a297d Mon Sep 17 00:00:00 2001 From: 张晓波 <bingbo1993@126.com> Date: 星期二, 26 九月 2023 10:16:22 +0800 Subject: [PATCH] 删除大屏 mq --- hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/netty/NettyServer.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/netty/NettyServer.java b/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/netty/NettyServer.java index 04f8345..521a4f0 100644 --- a/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/netty/NettyServer.java +++ b/hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/netty/NettyServer.java @@ -30,7 +30,7 @@ private EventLoopGroup work = new NioEventLoopGroup(); @Value("netty.port") - private Integer port; + private String port; /** * 启动Netty Server @@ -44,7 +44,7 @@ // 指定Channel .channel(NioServerSocketChannel.class) //使用指定的端口设置套接字地址 - .localAddress(new InetSocketAddress(port)) + .localAddress(new InetSocketAddress(Integer.parseInt(port))) //服务端可连接队列数,对应TCP/IP协议listen函数中backlog参数 .option(ChannelOption.SO_BACKLOG, 1024) -- Gitblit v1.9.3