自动化立体仓库 - WCS系统
#
tqs
2022-09-21 4514daed44b9bc2bdacafb1c214eb2284a683a23
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.zy.core.netty.properties;
 
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
 
import java.net.InetAddress;
import java.net.UnknownHostException;
 
/**
 * vc系统配置
 * Created by luxiaotao on 2018/10/15
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "tcp")
public class TcpProperties {
 
    public static String HOST_NAME;
 
    static {
        try {
            HOST_NAME = InetAddress.getLocalHost().getHostName();
        } catch (UnknownHostException e) {
            System.err.println("find hostname err");
        }
    }
 
    private int port;
 
    private int heartSeconds;
 
    private int backlog;
 
    private boolean keepAlive;
 
    private int sndbuf;
 
    private int rcvbuf;
 
    private boolean printPacLog;
 
    private int barcodeLen;
 
}