郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
package com.gkhy.safePlatform.config.database;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
 
@Configuration
@ConfigurationProperties(prefix = "spring.datasource")
public class DataCourceProperties {
 
    private Prop account;
 
    private Prop doubleprevent;
 
    private Prop riskcontrol;
 
    private Prop safecheck;
 
    private Prop specialwork;
 
    public Prop getAccount() {
        return account;
    }
 
    public void setAccount(Prop account) {
        this.account = account;
    }
 
    public Prop getDoubleprevent() {
        return doubleprevent;
    }
 
    public void setDoubleprevent(Prop doubleprevent) {
        this.doubleprevent = doubleprevent;
    }
 
    public Prop getRiskcontrol() {
        return riskcontrol;
    }
 
    public void setRiskcontrol(Prop riskcontrol) {
        this.riskcontrol = riskcontrol;
    }
 
    public Prop getSafecheck() {
        return safecheck;
    }
 
    public void setSafecheck(Prop safecheck) {
        this.safecheck = safecheck;
    }
 
    public Prop getSpecialwork() {
        return specialwork;
    }
 
    public void setSpecialwork(Prop specialwork) {
        this.specialwork = specialwork;
    }
 
    public static class Prop{
 
        private String url;
 
        private String username;
 
        private String password;
        private Integer initialSize;
 
        private Integer minIdle;
 
        private Integer maxActive;
 
        private Integer maxWait;
 
        private String validationQuery;
 
        private Integer validationQueryTimeout;
 
        private Boolean testWhileIdle;
 
        public String getUrl() {
            return url;
        }
 
        public void setUrl(String url) {
            this.url = url;
        }
 
        public String getUsername() {
            return username;
        }
 
        public void setUsername(String username) {
            this.username = username;
        }
 
        public String getPassword() {
            return password;
        }
 
        public void setPassword(String password) {
            this.password = password;
        }
 
        public Integer getInitialSize() {
            return initialSize;
        }
 
        public void setInitialSize(Integer initialSize) {
            this.initialSize = initialSize;
        }
 
        public Integer getMinIdle() {
            return minIdle;
        }
 
        public void setMinIdle(Integer minIdle) {
            this.minIdle = minIdle;
        }
 
        public Integer getMaxActive() {
            return maxActive;
        }
 
        public void setMaxActive(Integer maxActive) {
            this.maxActive = maxActive;
        }
 
        public Integer getMaxWait() {
            return maxWait;
        }
 
        public void setMaxWait(Integer maxWait) {
            this.maxWait = maxWait;
        }
 
        public String getValidationQuery() {
            return validationQuery;
        }
 
        public void setValidationQuery(String validationQuery) {
            this.validationQuery = validationQuery;
        }
 
        public Integer getValidationQueryTimeout() {
            return validationQueryTimeout;
        }
 
        public void setValidationQueryTimeout(Integer validationQueryTimeout) {
            this.validationQueryTimeout = validationQueryTimeout;
        }
 
        public Boolean getTestWhileIdle() {
            return testWhileIdle;
        }
 
        public void setTestWhileIdle(Boolean testWhileIdle) {
            this.testWhileIdle = testWhileIdle;
        }
    }
}