Files
admin-api/src/main/java/com/gzzn/omms/adminapi/config/PrimaryDsProperties.java
T

147 lines
3.5 KiB
Java
Raw Normal View History

package com.gzzn.omms.adminapi.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "spring.datasource.primary")
public class PrimaryDsProperties {
private String url;
private String username;
private String password;
private String driver;
private Integer initialSize;
private Integer minIdle;
private Integer maxPoolPreparedStatementPerConnectionSize;
private Integer maxActive;
private Integer maxWait;
private Integer timeBetweenEvictionRunsMillis;
private Integer minEvictableIdleTimeMillis;
private boolean poolPreparedStatements;
private boolean testOnBorrow;
2018-12-24 14:32:20 +08:00
private String validationQuery;
public String getUrl() {
return url;
}
public String getUsername() {
return username;
}
public String getPassword() {
return password;
}
public String getDriver() {
return driver;
}
public Integer getInitialSize() {
return initialSize;
}
public Integer getMinIdle() {
return minIdle;
}
public Integer getMaxPoolPreparedStatementPerConnectionSize() {
return maxPoolPreparedStatementPerConnectionSize;
}
public Integer getMaxActive() {
return maxActive;
}
public Integer getMaxWait() {
return maxWait;
}
public Integer getTimeBetweenEvictionRunsMillis() {
return timeBetweenEvictionRunsMillis;
}
public Integer getMinEvictableIdleTimeMillis() {
return minEvictableIdleTimeMillis;
}
public boolean isPoolPreparedStatements() {
return poolPreparedStatements;
}
public boolean isTestOnBorrow() {
return testOnBorrow;
}
public void setUrl(String url) {
this.url = url;
}
public void setUsername(String username) {
this.username = username;
}
public void setPassword(String password) {
this.password = password;
}
public void setDriver(String driver) {
this.driver = driver;
}
public void setInitialSize(Integer initialSize) {
this.initialSize = initialSize;
}
public void setMinIdle(Integer minIdle) {
this.minIdle = minIdle;
}
public void setMaxPoolPreparedStatementPerConnectionSize(Integer maxPoolPreparedStatementPerConnectionSize) {
this.maxPoolPreparedStatementPerConnectionSize = maxPoolPreparedStatementPerConnectionSize;
}
public void setMaxActive(Integer maxActive) {
this.maxActive = maxActive;
}
public void setMaxWait(Integer maxWait) {
this.maxWait = maxWait;
}
public void setTimeBetweenEvictionRunsMillis(Integer timeBetweenEvictionRunsMillis) {
this.timeBetweenEvictionRunsMillis = timeBetweenEvictionRunsMillis;
}
public void setMinEvictableIdleTimeMillis(Integer minEvictableIdleTimeMillis) {
this.minEvictableIdleTimeMillis = minEvictableIdleTimeMillis;
}
public void setPoolPreparedStatements(boolean poolPreparedStatements) {
this.poolPreparedStatements = poolPreparedStatements;
}
public void setTestOnBorrow(boolean testOnBorrow) {
this.testOnBorrow = testOnBorrow;
}
2018-12-24 14:32:20 +08:00
public String getValidationQuery() {
return validationQuery;
}
public void setValidationQuery(String validationQuery) {
this.validationQuery = validationQuery;
}
}