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,6 +13,14 @@ spring:
13 username: test 13 username: test
14 password: 123456 14 password: 123456
15 driver-class-name: com.mysql.jdbc.Driver 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 redis: 24 redis:
17 database: 0 25 database: 0
18 host: redis-server 26 host: redis-server
@@ -65,6 +73,14 @@ spring: @@ -65,6 +73,14 @@ spring:
65 username: test 73 username: test
66 password: 123456 74 password: 123456
67 driver-class-name: com.mysql.jdbc.Driver 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 redis: 84 redis:
69 database: 0 85 database: 0
70 host: redis-server 86 host: redis-server
@@ -117,6 +133,14 @@ spring: @@ -117,6 +133,14 @@ spring:
117 username: postgres 133 username: postgres
118 password: 5095e001221824498ea622e89bdd3627 134 password: 5095e001221824498ea622e89bdd3627
119 driver-class-name: com.mysql.jdbc.Driver 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 redis: 144 redis:
121 database: 0 145 database: 0
122 host: redis1 146 host: redis1