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;
|
}
|
}
|
}
|