@Component @ConfigurationProperties(prefix="spring.datasource.admin") public class DruidDataSourceProperties extends Object
| 构造器和说明 |
|---|
DruidDataSourceProperties() |
public String getJdbcUrl()
public void setJdbcUrl(String jdbcUrl)
public String getDriverClassName()
public void setDriverClassName(String driverClassName)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public Integer getInitialSize()
public void setInitialSize(Integer initialSize)
public Integer getMaxActive()
public void setMaxActive(Integer maxActive)
public Integer getMinIdle()
public void setMinIdle(Integer minIdle)
public Long getMaxWait()
public void setMaxWait(Long maxWait)
public Long getTimeBetweenEvictionRunsMillis()
public void setTimeBetweenEvictionRunsMillis(Long timeBetweenEvictionRunsMillis)
public Long getMinEvictableIdleTimeMillis()
public void setMinEvictableIdleTimeMillis(Long minEvictableIdleTimeMillis)
public String getValidationQuery()
public void setValidationQuery(String validationQuery)
public Boolean getTestWhileIdle()
public void setTestWhileIdle(Boolean testWhileIdle)
public Boolean getTestOnBorrow()
public void setTestOnBorrow(Boolean testOnBorrow)
public Boolean getTestOnReturn()
public void setTestOnReturn(Boolean testOnReturn)
public Boolean getPoolPreparedStatements()
public void setPoolPreparedStatements(Boolean poolPreparedStatements)
public Integer getMaxPoolPreparedStatementPerConnectionSize()
public void setMaxPoolPreparedStatementPerConnectionSize(Integer maxPoolPreparedStatementPerConnectionSize)
public Boolean getRemoveAbandoned()
public void setRemoveAbandoned(Boolean removeAbandoned)
public Integer getRemoveAbandonedTimeout()
public void setRemoveAbandonedTimeout(Integer removeAbandonedTimeout)
Copyright © 2021. All rights reserved.