123456789101112131415161718192021222324252627 |
- spring:
- datasource:
- type: com.alibaba.druid.pool.DruidDataSource
- druid:
- master: {url: 'jdbc:mysql://localhost:3306/dataCenter?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8',
- username: root, password: 123456, driverClassName: com.mysql.cj.jdbc.Driver}
- initialSize: 5
- minIdle: 10
- maxActive: 20
- maxWait: 60000
- connectTimeout: 30000
- socketTimeout: 60000
- timeBetweenEvictionRunsMillis: 60000
- minEvictableIdleTimeMillis: 300000
- maxEvictableIdleTimeMillis: 900000
- validationQuery: SELECT 1 FROM DUAL
- testWhileIdle: true
- testOnBorrow: false
- testOnReturn: false
- webStatFilter: {enabled: true}
- statViewServlet: {enabled: true, allow: null, url-pattern: /druid/*, login-username: ruoyi,
- login-password: 123456}
- filter:
- stat: {enabled: true, log-slow-sql: true, slow-sql-millis: 1000, merge-sql: true}
- wall:
- config: {multi-statement-allow: true}
- key: newValue
|