mirror of https://gitee.com/stylefeng/guns
修改配置并将druid配置放到bean里
parent
37658803c8
commit
48b90d2b75
|
@ -8,17 +8,4 @@ spring:
|
||||||
|
|
||||||
# 连接池大小根据实际情况调整
|
# 连接池大小根据实际情况调整
|
||||||
max-active: 100
|
max-active: 100
|
||||||
max-pool-prepared-statement-per-connection-size: 100
|
max-pool-prepared-statement-per-connection-size: 100
|
||||||
druid:
|
|
||||||
initialSize: 50
|
|
||||||
minIdle: 50
|
|
||||||
maxActive: 200
|
|
||||||
maxWait: 60000
|
|
||||||
timeBetweenEvictionRunsMillis: 60000
|
|
||||||
minEvictableIdleTimeMillis: 300000
|
|
||||||
maxEvictableIdleTimeMillis: 900000
|
|
||||||
validationQuery: SELECT 1 FROM DUAL
|
|
||||||
testWhileIdle: true
|
|
||||||
testOnBorrow: false
|
|
||||||
testOnReturn: false
|
|
||||||
poolPreparedStatements: false
|
|
|
@ -8,17 +8,4 @@ spring:
|
||||||
password: p8HMTBEapAPPmXB8!
|
password: p8HMTBEapAPPmXB8!
|
||||||
# 连接池大小根据实际情况调整
|
# 连接池大小根据实际情况调整
|
||||||
max-active: 100
|
max-active: 100
|
||||||
max-pool-prepared-statement-per-connection-size: 100
|
max-pool-prepared-statement-per-connection-size: 100
|
||||||
druid:
|
|
||||||
initialSize: 50
|
|
||||||
minIdle: 50
|
|
||||||
maxActive: 200
|
|
||||||
maxWait: 60000
|
|
||||||
timeBetweenEvictionRunsMillis: 60000
|
|
||||||
minEvictableIdleTimeMillis: 300000
|
|
||||||
maxEvictableIdleTimeMillis: 900000
|
|
||||||
validationQuery: SELECT 1 FROM DUAL
|
|
||||||
testWhileIdle: true
|
|
||||||
testOnBorrow: false
|
|
||||||
testOnReturn: false
|
|
||||||
poolPreparedStatements: false
|
|
Loading…
Reference in New Issue