Commit 9aa8286bc745ae2487a8bd4dfc80c63580a67b25

Authored by luotong
1 parent 838ce5df

配置数据库连接池参数

Showing 1 changed file with 24 additions and 0 deletions
user-service.yml
... ... @@ -13,6 +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 24 redis:
17 25 database: 0
18 26 host: redis-server
... ... @@ -65,6 +73,14 @@ spring:
65 73 username: test
66 74 password: 123456
67 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
68 84 redis:
69 85 database: 0
70 86 host: redis-server
... ... @@ -117,6 +133,14 @@ spring:
117 133 username: postgres
118 134 password: 5095e001221824498ea622e89bdd3627
119 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
120 144 redis:
121 145 database: 0
122 146 host: redis1
... ...