调整 druid 驱动参数
This commit is contained in:
parent
7983aa26f9
commit
0f510c10db
@ -19,6 +19,13 @@ spring:
|
||||
password: 12341234
|
||||
url: jdbc:mysql://10.10.10.200:3306/matrix_v2?createDatabaseIfNotExist=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
# jdbc-url: jdbc:mysql://10.10.10.100:3306/matrix?createDatabaseIfNotExist=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
initial-size: 5
|
||||
min-idle: 5
|
||||
maxWait: 60000
|
||||
testWhileIdle: true
|
||||
testOnBorrow: false
|
||||
testOnReturn: false
|
||||
validationQuery: SELECT 1
|
||||
|
||||
rules:
|
||||
sharding:
|
||||
|
@ -43,6 +43,14 @@ spring:
|
||||
username: root
|
||||
password: 12341234
|
||||
url: jdbc:mysql://10.10.10.200:3306/matrix_v2?createDatabaseIfNotExist=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true
|
||||
initial-size: 5
|
||||
min-idle: 5
|
||||
maxWait: 60000
|
||||
testWhileIdle: true
|
||||
testOnBorrow: false
|
||||
testOnReturn: false
|
||||
validationQuery: SELECT 1
|
||||
|
||||
# jdbc-url: jdbc:mysql://10.10.10.100:3306/matrix?createDatabaseIfNotExist=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
|
||||
rules:
|
||||
|
Loading…
Reference in New Issue
Block a user