1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
| spring: datasource: dynamic: primary: toc strict: false datasource: admin: type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://xx.xx.xx.xx:3306/xx?autoReconnect=true&serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false username: xx password: xxxx dbcp2: min-idle: 5 initial-size: 5 max-total: 5 max-wait-millis: 150 druid: initial-size: 5 min-idle: 10 max-active: 20 max-wait: 5000 time-between-eviction-runs-millis: 60000 min-evictable-idle-time-millis: 300000 max-evictable-idle-time-millis: 900000 test-while-idle: true test-on-borrow: false test-on-return: false validation-query: select 1 webStatFilter: enabled: true stat-view-servlet: enabled: true url-pattern: /druid/* reset-enable: false filter: stat: enabled: true log-slow-sql: true slow-sql-millis: 1000 merge-sql: true wall: config: multi-statement-allow: true toc: type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://xx.xx.xx.xx:3306/xx?autoReconnect=true&serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false username: xx password: xx dbcp2: min-idle: 5 initial-size: 5 max-total: 5 max-wait-millis: 150
|