DataSourceProperties.java 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. package com.kmall.admin.config.datasource;
  2. /**
  3. * @author lhm
  4. * @createDate 2021-12-15
  5. */
  6. public class DataSourceProperties {
  7. private String env;
  8. private String url;
  9. private String username;
  10. private String password;
  11. private Integer initialSize;
  12. private Integer maxActive;
  13. private Integer minPoolSize;
  14. private Integer maxIdleTime;
  15. private Integer idleConnectionTestPeriod;
  16. private String driver;
  17. private Long idleTimeout;
  18. private Long maxLifetime;
  19. private Long connectionTimeout;
  20. private Integer maximumPoolSize;
  21. private Long validationTimeout;
  22. public String getEnv() {
  23. return env;
  24. }
  25. public void setEnv(String env) {
  26. this.env = env;
  27. }
  28. public String getUrl() {
  29. return url;
  30. }
  31. public void setUrl(String url) {
  32. this.url = url;
  33. }
  34. public String getUsername() {
  35. return username;
  36. }
  37. public void setUsername(String username) {
  38. this.username = username;
  39. }
  40. public String getPassword() {
  41. return password;
  42. }
  43. public void setPassword(String password) {
  44. this.password = password;
  45. }
  46. public Integer getInitialSize() {
  47. return initialSize;
  48. }
  49. public void setInitialSize(Integer initialSize) {
  50. this.initialSize = initialSize;
  51. }
  52. public Integer getMaxActive() {
  53. return maxActive;
  54. }
  55. public void setMaxActive(Integer maxActive) {
  56. this.maxActive = maxActive;
  57. }
  58. public Integer getMinPoolSize() {
  59. return minPoolSize;
  60. }
  61. public void setMinPoolSize(Integer minPoolSize) {
  62. this.minPoolSize = minPoolSize;
  63. }
  64. public Integer getMaxIdleTime() {
  65. return maxIdleTime;
  66. }
  67. public void setMaxIdleTime(Integer maxIdleTime) {
  68. this.maxIdleTime = maxIdleTime;
  69. }
  70. public Integer getIdleConnectionTestPeriod() {
  71. return idleConnectionTestPeriod;
  72. }
  73. public void setIdleConnectionTestPeriod(Integer idleConnectionTestPeriod) {
  74. this.idleConnectionTestPeriod = idleConnectionTestPeriod;
  75. }
  76. public String getDriver() {
  77. return driver;
  78. }
  79. public void setDriver(String driver) {
  80. this.driver = driver;
  81. }
  82. public Long getIdleTimeout() {
  83. return idleTimeout;
  84. }
  85. public void setIdleTimeout(Long idleTimeout) {
  86. this.idleTimeout = idleTimeout;
  87. }
  88. public Long getMaxLifetime() {
  89. return maxLifetime;
  90. }
  91. public void setMaxLifetime(Long maxLifetime) {
  92. this.maxLifetime = maxLifetime;
  93. }
  94. public Long getConnectionTimeout() {
  95. return connectionTimeout;
  96. }
  97. public void setConnectionTimeout(Long connectionTimeout) {
  98. this.connectionTimeout = connectionTimeout;
  99. }
  100. public Integer getMaximumPoolSize() {
  101. return maximumPoolSize;
  102. }
  103. public void setMaximumPoolSize(Integer maximumPoolSize) {
  104. this.maximumPoolSize = maximumPoolSize;
  105. }
  106. public Long getValidationTimeout() {
  107. return validationTimeout;
  108. }
  109. public void setValidationTimeout(Long validationTimeout) {
  110. this.validationTimeout = validationTimeout;
  111. }
  112. }