自动化立体仓库 - WCS系统
#
LSH
2023-01-29 164bdd039c4f5c5fe0572b7f1f090b9346cd735f
src/main/java/com/zy/core/netty/OnlineServer.java
@@ -1,6 +1,7 @@
package com.zy.core.netty;
import com.zy.common.utils.News;
import com.zy.core.netty.properties.TcpProperties;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.buffer.PooledByteBufAllocator;
@@ -66,7 +67,7 @@
        ResourceLeakDetector.setLevel(ResourceLeakDetector.Level.ADVANCED);
        log.info("TCP server started successfully, port:{}", tcpProperties.getPort());
        News.info("TCP server started successfully, port:{}", tcpProperties.getPort());
        channel = bootstrap.bind(tcpProperties.getPort()).sync().channel();
    }
@@ -86,7 +87,7 @@
        if (workerGroup != null) {
            workerGroup.shutdownGracefully();
        }
        log.info("TCP server stopped successfully, port: {}", tcpProperties.getPort());
        News.info("TCP server stopped successfully, port: {}", tcpProperties.getPort());
    }
}