-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGinxConfig.java
More file actions
38 lines (32 loc) · 2.04 KB
/
GinxConfig.java
File metadata and controls
38 lines (32 loc) · 2.04 KB
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
package com.modulecode.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GinxConfig {
private String configUrl; //配置文件路径
private String version = "1.0.0";
private String name;
private String host;
private int tcpPort;
private int maxConn;
private String ipVersion;
private int maxPackageSize = 10240 * 30;
private String logoImageStr = """
██╗ ██╗███████╗██╗ ██╗ ██████╗ ██████╗ ██╗███╗ ██╗██╗ ██╗
██║ ██║██╔════╝██║ ██║ ██╔═══██╗ ██╔════╝ ██║████╗ ██║╚██╗██╔╝
███████║█████╗ ██║ ██║ ██║ ██║ ██║ ███╗██║██╔██╗ ██║ ╚███╔╝\s
██╔══██║██╔══╝ ██║ ██║ ██║ ██║ ██║ ██║██║██║╚██╗██║ ██╔██╗\s
██║ ██║███████╗███████╗███████╗╚██████╔╝ ╚██████╔╝██║██║ ╚████║██╔╝ ██╗
╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝
""";
public void printLogoImageStr() {
System.out.println(this.getLogoImageStr());
System.out.printf("""
===========================================================================
:: GINX :: (V%s)
""", this.getVersion());
}
}