张晓波
2023-09-26 28c1b94b689949eb1d02c9acf69ee45aaf6cc2cd
点检信息
已修改5个文件
14 ■■■■■ 文件已修改
hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/netty/NettyServer.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
hd/pipe/StaffManage/src/main/resources/application-pro.yml 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
hd/pipe/UserCore/src/main/resources/application-pro.yml 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
hd/pipe/materialsManage/src/main/resources/application-pro.yml 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
hd/pipe/secure/src/main/resources/application-pro.yml 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
hd/pipe/StaffManage/src/main/java/com/thhy/staff/modules/biz/netty/NettyServer.java
@@ -8,6 +8,7 @@
import io.netty.channel.socket.nio.NioServerSocketChannel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
@@ -28,6 +29,9 @@
     */
    private EventLoopGroup work = new NioEventLoopGroup();
    @Value("netty.port")
    private Integer port;
    /**
     * 启动Netty Server
     *
@@ -40,7 +44,7 @@
                // 指定Channel
                .channel(NioServerSocketChannel.class)
                //使用指定的端口设置套接字地址
                .localAddress(new InetSocketAddress(10001))
                .localAddress(new InetSocketAddress(port))
                //服务端可连接队列数,对应TCP/IP协议listen函数中backlog参数
                .option(ChannelOption.SO_BACKLOG, 1024)
hd/pipe/StaffManage/src/main/resources/application-pro.yml
@@ -1,5 +1,3 @@
server:
  port: 8882
spring:
  config:
    activate:
hd/pipe/UserCore/src/main/resources/application-pro.yml
@@ -1,5 +1,3 @@
server:
  port: 8881
spring:
  config:
    activate:
hd/pipe/materialsManage/src/main/resources/application-pro.yml
@@ -1,5 +1,3 @@
server:
  port: 8892
spring:
  config:
    activate:
hd/pipe/secure/src/main/resources/application-pro.yml
@@ -1,5 +1,3 @@
server:
  port: 8886
spring:
  config:
    activate: