From 4f8e2ccb4efea17ade5c3c93afef8ea5e7799e65 Mon Sep 17 00:00:00 2001 From: thinkgem Date: Sun, 22 Jul 2018 14:17:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=BA=9B=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E6=B1=A0=E5=B8=B8=E7=94=A8=E5=8F=82=E6=95=B0=EF=BC=8C?= =?UTF-8?q?=E8=AF=A6=E8=A7=81=20jeesite-core.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/config/jeesite-core.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/modules/core/src/main/resources/config/jeesite-core.yml b/modules/core/src/main/resources/config/jeesite-core.yml index 333c9933..ddb202d4 100644 --- a/modules/core/src/main/resources/config/jeesite-core.yml +++ b/modules/core/src/main/resources/config/jeesite-core.yml @@ -25,6 +25,23 @@ jdbc: # 最大连接数 maxActive: 20 + # 获取连接等待超时时间,单位毫秒(4.0.6+) + maxWait: 60000 + + # 从池中取出连接前进行检验,如果检验失败,则从池中去除连接并尝试取出另一个。(4.0.6+) + testOnBorrow: false + testOnReturn: false + + # 间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒(4.0.6+) + timeBetweenEvictionRunsMillis: 60000 + + # 一个连接在池中最小生存的时间,单位毫秒(4.0.6+) + minEvictableIdleTimeMillis: 300000 + + # 配置是否自动回收超时连接,超时时间,单位秒 (4.0.6+) + removeAbandoned: true + removeAbandonedTimeout: 1800 + # # 多数据源名称列表,启用方式:@MyBatisDao(dataSourceName="ds2") # dataSourceNames: ds2 #