|
|
@@ -9,10 +9,10 @@ spring:
|
|
|
initial-size: 10
|
|
|
max-active: 100
|
|
|
min-idle: 10
|
|
|
- max-wait: 60000
|
|
|
+ max-wait: 10000
|
|
|
pool-prepared-statements: true
|
|
|
max-pool-prepared-statement-per-connection-size: 20
|
|
|
- time-between-eviction-runs-millis: 60000
|
|
|
+ time-between-eviction-runs-millis: 30000
|
|
|
min-evictable-idle-time-millis: 100000
|
|
|
#Oracle需要打开注释
|
|
|
#validation-query: SELECT 1 FROM DUAL
|
|
|
@@ -21,7 +21,7 @@ spring:
|
|
|
test-on-return: false
|
|
|
default-auto-commit: true
|
|
|
remove-abandoned: true
|
|
|
- remove-abandoned-timeout: 30
|
|
|
+ remove-abandoned-timeout: 60
|
|
|
log-abandoned: true
|
|
|
stat-view-servlet:
|
|
|
enabled: true
|
|
|
@@ -134,19 +134,21 @@ dynamic:
|
|
|
username: root
|
|
|
password: ch@2025.wm
|
|
|
# password: chuanghai@2024
|
|
|
- initial-size: 15
|
|
|
+ initial-size: 10
|
|
|
max-active: 100
|
|
|
min-idle: 10
|
|
|
- max-wait: 60000
|
|
|
+ max-wait: 10000
|
|
|
pool-prepared-statements: true
|
|
|
max-pool-prepared-statement-per-connection-size: 20
|
|
|
- time-between-eviction-runs-millis: 60000
|
|
|
+ time-between-eviction-runs-millis: 30000
|
|
|
min-evictable-idle-time-millis: 100000
|
|
|
#Oracle需要打开注释
|
|
|
#validation-query: SELECT 1 FROM DUAL
|
|
|
test-while-idle: true
|
|
|
test-on-borrow: false
|
|
|
test-on-return: false
|
|
|
+ remove-abandoned: true
|
|
|
+ remove-abandoned-timeout: 60
|
|
|
stat-view-servlet:
|
|
|
enabled: true
|
|
|
url-pattern: /druid/*
|