File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed
eladmin-system/src/main/resources/config Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,26 @@ spring:
10
10
# 初始连接数
11
11
initial-size : 5
12
12
# 最小连接数
13
- min-idle : 10
13
+ min-idle : 15
14
14
# 最大连接数
15
- max-active : 20
15
+ max-active : 30
16
+ # 是否自动回收超时连接
17
+ remove-abandoned : true
18
+ # 超时时间(以秒数为单位)
19
+ remove-abandoned-timeout : 180
16
20
# 获取连接超时时间
17
- max-wait : 5000
21
+ max-wait : 3000
18
22
# 连接有效性检测时间
19
23
time-between-eviction-runs-millis : 60000
20
24
# 连接在池中最小生存的时间
21
25
min-evictable-idle-time-millis : 300000
22
26
# 连接在池中最大生存的时间
23
27
max-evictable-idle-time-millis : 900000
28
+ # 指明连接是否被空闲连接回收器(如果有)进行检验.如果检测失败,则连接将被从池中去除
24
29
test-while-idle : true
25
- test-on-borrow : false
30
+ # 指明是否在从池中取出连接前进行检验,如果检验失败, 则从池中去除连接并尝试取出另一个
31
+ test-on-borrow : true
32
+ # 是否在归还到池中前进行检验
26
33
test-on-return : false
27
34
# 检测连接是否有效
28
35
validation-query : select 1
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ spring:
10
10
# 初始连接数
11
11
initial-size : 5
12
12
# 最小连接数
13
- min-idle : 10
13
+ min-idle : 15
14
14
# 最大连接数
15
- max-active : 20
15
+ max-active : 30
16
16
# 获取连接超时时间
17
17
max-wait : 5000
18
18
# 连接有效性检测时间
@@ -21,8 +21,11 @@ spring:
21
21
min-evictable-idle-time-millis : 300000
22
22
# 连接在池中最大生存的时间
23
23
max-evictable-idle-time-millis : 900000
24
+ # 指明连接是否被空闲连接回收器(如果有)进行检验.如果检测失败,则连接将被从池中去除
24
25
test-while-idle : true
25
- test-on-borrow : false
26
+ # 指明是否在从池中取出连接前进行检验,如果检验失败, 则从池中去除连接并尝试取出另一个
27
+ test-on-borrow : true
28
+ # 是否在归还到池中前进行检验
26
29
test-on-return : false
27
30
# 检测连接是否有效
28
31
validation-query : select 1
@@ -31,6 +34,7 @@ spring:
31
34
enabled : true
32
35
stat-view-servlet :
33
36
enabled : true
37
+ # 控制台管理用户名和密码
34
38
url-pattern : /druid/*
35
39
reset-enable : false
36
40
login-username : admin
You can’t perform that action at this time.
0 commit comments