Commit 5031bad8e2047d3aaeb8c8fc989a9cac4f5eca7c

Authored by luotong
1 parent bddfbf5c

修改数据库连接池配置

Showing 1 changed file with 24 additions and 24 deletions
user-service.yml
... ... @@ -13,14 +13,14 @@ spring:
13 13 username: test
14 14 password: 123456
15 15 driver-class-name: com.mysql.jdbc.Driver
16   - max-idle=10
17   - max-active=100
18   - max-wait=60000
19   - min-idle=10
20   - initial-size=10
21   - validation-query=SELECT 1
22   - test-on-borrow=true
23   - test-while-idle=true
  16 + max-idle: 10
  17 + max-active: 30
  18 + max-wait: 60000
  19 + min-idle: 10
  20 + initial-size: 10
  21 + validation-query: SELECT 1
  22 + test-on-borrow: true
  23 + test-while-idle: true
24 24 redis:
25 25 database: 0
26 26 host: redis-server
... ... @@ -73,14 +73,14 @@ spring:
73 73 username: test
74 74 password: 123456
75 75 driver-class-name: com.mysql.jdbc.Driver
76   - max-idle=10
77   - max-active=100
78   - max-wait=60000
79   - min-idle=10
80   - initial-size=10
81   - validation-query=SELECT 1
82   - test-on-borrow=true
83   - test-while-idle=true
  76 + max-idle: 10
  77 + max-active: 30
  78 + max-wait: 60000
  79 + min-idle: 10
  80 + initial-size: 10
  81 + validation-query: SELECT 1
  82 + test-on-borrow: true
  83 + test-while-idle: true
84 84 redis:
85 85 database: 0
86 86 host: redis-server
... ... @@ -133,14 +133,14 @@ spring:
133 133 username: postgres
134 134 password: 5095e001221824498ea622e89bdd3627
135 135 driver-class-name: com.mysql.jdbc.Driver
136   - max-idle=10
137   - max-active=100
138   - max-wait=60000
139   - min-idle=10
140   - initial-size=10
141   - validation-query=SELECT 1
142   - test-on-borrow=true
143   - test-while-idle=true
  136 + max-idle: 10
  137 + max-active: 30
  138 + max-wait: 60000
  139 + min-idle: 10
  140 + initial-size: 10
  141 + validation-query: SELECT 1
  142 + test-on-borrow: true
  143 + test-while-idle: true
144 144 redis:
145 145 database: 0
146 146 host: redis1
... ...