From 2bb35b532539825ae06ef0691dd2107516f7ab57 Mon Sep 17 00:00:00 2001 From: fanghongchao <601470458@qq.com> Date: Wed, 12 Dec 2018 15:29:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0mysql=20=E8=BF=87=E6=9C=9F?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E5=92=8C=20=E9=87=8D=E8=BF=9E=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-dev.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 552fde4..f575100 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -8,7 +8,16 @@ spring: max-active: 30 test-on-borrow: true initial-size: 3 - + min-idle: 1 + max-active: 20 + test-on-borrow: true + max-wait: 60000 + time-between-eviction-runs-millis: 60000 + min-evictable-idle-time-millis: 300000 + test-while-idle: true + test-on-return: false + pool-prepared-statements: false + max-pool-prepared-statement-per-connection-size: 20 secondary: username: ommsxc password: ommsxc