From 75c292340b20e71e30af074e3919e9b2d8d50d5b Mon Sep 17 00:00:00 2001 From: bingbo <bingbo1993@126.com> Date: 星期一, 27 十一月 2023 15:20:12 +0800 Subject: [PATCH] 加减钢筋笼库存 带记录 --- hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/netty/NettyServer.java | 6 +++--- 1 files changed, 3 insertions(+), 3 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..dd652fa 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 @@ -29,8 +29,8 @@ */ private EventLoopGroup work = new NioEventLoopGroup(); - @Value("netty.port") - private Integer port; + @Value("${netty.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