application-dev.yml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. spring:
  2. datasource:
  3. type: com.alibaba.druid.pool.DruidDataSource
  4. driverClassName: net.sf.log4jdbc.DriverSpy
  5. druid:
  6. first: #数据源1
  7. url: jdbc:log4jdbc:mysql://localhost:3306/warewms_message?allowMultiQueries=true&useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
  8. username: root
  9. password: wyt312gizmo
  10. initial-size: 10
  11. max-active: 50
  12. min-idle: 1
  13. max-wait: 60000
  14. pool-prepared-statements: true
  15. max-pool-prepared-statement-per-connection-size: 20
  16. time-between-eviction-runs-millis: 60000
  17. min-evictable-idle-time-millis: 300000
  18. validation-query: SELECT 1 FROM DUAL
  19. test-while-idle: true
  20. test-on-borrow: false
  21. test-on-return: false
  22. removeAbandonedTimeout: 1800
  23. removeAbandoned: false
  24. #removeAbandonedTimeoutMillis: 300000
  25. stat-view-servlet:
  26. enabled: true
  27. url-pattern: /druid/*
  28. #login-username: admin
  29. #login-password: admin
  30. filter:
  31. stat:
  32. log-slow-sql: true
  33. slow-sql-millis: 1000
  34. merge-sql: true
  35. wall:
  36. config:
  37. multi-statement-allow: true
  38. second: #数据源2
  39. url: jdbc:log4jdbc:mysql://localhost:3306/x521?allowMultiQueries=true&useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
  40. username: root
  41. password: wyt312gizmo
  42. initial-size: 10
  43. max-active: 50
  44. min-idle: 1
  45. max-wait: 60000
  46. pool-prepared-statements: true
  47. max-pool-prepared-statement-per-connection-size: 20
  48. time-between-eviction-runs-millis: 60000
  49. min-evictable-idle-time-millis: 300000
  50. validation-query: SELECT 1 FROM DUAL
  51. test-while-idle: true
  52. test-on-borrow: false
  53. test-on-return: false
  54. removeAbandonedTimeout: 1800
  55. removeAbandoned: false
  56. #removeAbandonedTimeoutMillis: 300000
  57. stat-view-servlet:
  58. enabled: true
  59. url-pattern: /druid/*
  60. #login-username: admin
  61. #login-password: admin
  62. filter:
  63. stat:
  64. log-slow-sql: true
  65. slow-sql-millis: 1000
  66. merge-sql: true
  67. wall:
  68. config:
  69. multi-statement-allow: true
  70. third: #数据源3
  71. url: jdbc:log4jdbc:mysql://localhost:3306/x521_2?allowMultiQueries=true&useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
  72. username: root
  73. password: wyt312gizmo
  74. initial-size: 10
  75. max-active: 50
  76. min-idle: 1
  77. max-wait: 60000
  78. pool-prepared-statements: true
  79. max-pool-prepared-statement-per-connection-size: 20
  80. time-between-eviction-runs-millis: 60000
  81. min-evictable-idle-time-millis: 300000
  82. validation-query: SELECT 1 FROM DUAL
  83. test-while-idle: true
  84. test-on-borrow: false
  85. test-on-return: false
  86. removeAbandonedTimeout: 1800
  87. removeAbandoned: false
  88. #removeAbandonedTimeoutMillis: 300000
  89. stat-view-servlet:
  90. enabled: true
  91. url-pattern: /druid/*
  92. #login-username: admin
  93. #login-password: admin
  94. filter:
  95. stat:
  96. log-slow-sql: true
  97. slow-sql-millis: 1000
  98. merge-sql: true
  99. wall:
  100. config:
  101. multi-statement-allow: true
  102. fourth: #数据源4
  103. url: jdbc:log4jdbc:mysql://localhost:3306/x521_1?allowMultiQueries=true&useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
  104. username: root
  105. password: wyt312gizmo
  106. initial-size: 10
  107. max-active: 50
  108. min-idle: 1
  109. max-wait: 60000
  110. pool-prepared-statements: true
  111. max-pool-prepared-statement-per-connection-size: 20
  112. time-between-eviction-runs-millis: 60000
  113. min-evictable-idle-time-millis: 300000
  114. validation-query: SELECT 1 FROM DUAL
  115. test-while-idle: true
  116. test-on-borrow: false
  117. test-on-return: false
  118. removeAbandonedTimeout: 1800
  119. removeAbandoned: false
  120. #removeAbandonedTimeoutMillis: 300000
  121. stat-view-servlet:
  122. enabled: true
  123. url-pattern: /druid/*
  124. #login-username: admin
  125. #login-password: admin
  126. filter:
  127. stat:
  128. log-slow-sql: true
  129. slow-sql-millis: 1000
  130. merge-sql: true
  131. wall:
  132. config:
  133. multi-statement-allow: true
  134. logging:
  135. config: classpath:logback-spring-test.xml