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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
| package com.lf.server.entity.all;
|
| import java.util.ArrayList;
| import java.util.Arrays;
| import java.util.List;
|
| /**
| * 静态数据类
| * @author WWW
| */
| public class StaticData {
| /**
| * 权限排除路径:/proxy
| */
| public static String[] EXCLUDE_PATH = new String[]{"/swagger", "/sign/", "/error", "/floatserver"};
|
| /**
| * 数值:4
| */
| public final static int FOUR = 4;
|
| /**
| * 数值:200
| */
| public final static int TWO_HUNDRED = 200;
|
| /**
| * 版本号
| */
| public final static String VERSION = "1.0.0";
|
| /**
| * 令牌键
| */
| public final static String TOKEN_KEY = "token";
|
| /**
| * Cookie中令牌键
| */
| public final static String TOKEN_COOKIE_KEY = "token";
|
| /**
| * Cookie中druid键
| */
| public final static String DRUID_COOKIE_KEY = "JSESSIONID";
|
| /**
| * 文本编码方式
| */
| public final static String TEXT_ENCODER = "UTF-8";
|
| /**
| * 密码正则表达式
| */
| public final static String PWD_REG = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![a-z0-9]+$)(?![a-z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)[a-zA-Z0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]{12,20}$";
|
| /**
| * 上传文件类型
| */
| public final static String FILE_TYPES = "'xls','shp','gdb','mdb'";
|
| /**
| * 字符点
| */
| public final static String POINT = ".";
|
| /**
| * 等号
| */
| public final static String EQ = "=";
|
| /**
| * 插入排除字段
| */
| public final static List<String> INSERT_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("gid", "objectid", "updateuser", "updatetime", "shape_leng", "shape_area", "dirName", "depName", "verName", "createName", "updateName"));
|
| /**
| * 更新排除字段
| */
| public final static List<String> UPDATE_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("objectid", "createuser", "createtime", "shape_leng", "shape_area", "dirName", "depName", "verName", "createName", "updateName"));
|
| /**
| * 读取排除字段
| */
| public final static List<String> READ_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("gid", "objectid", "dirid", "depid", "verid", "createtime", "createuser", "updateuser", "updatetime", "shape_leng", "shape_area", "dirName", "depName", "verName", "createName", "updateName"));
| }
|
|