parent
d947c817e0
commit
46e5d9c68d
@ -0,0 +1,26 @@
|
||||
spring:
|
||||
datasource:
|
||||
username: root
|
||||
password: 123456
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://127.0.0.1:3306/lab_booking?characterEncoding=utf-8&serverTimezone=UTC
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
|
||||
initialSize: 5
|
||||
minIdle: 5
|
||||
maxActive: 20
|
||||
maxWait: 60000
|
||||
timeBetweenEvictionRunsMillis: 60000
|
||||
minEvictableIdleTimeMillis: 300000
|
||||
validationQuery: SELECT 1 FROM DUAL
|
||||
testWhileIdle: true
|
||||
testOnBorrow: false
|
||||
testOnReturn: false
|
||||
poolPreparedStatements: true
|
||||
|
||||
filters: stat,wall,log4j
|
||||
maxPoolPreparedStatementPerConnectionSize: 20
|
||||
useGlobalDataourceStat: true
|
||||
connectionProperties: druid.stat.mergeSql=true:druid.stat.slowSqlMillis=500
|
||||
|
||||
|
Loading…
Reference in new issue