From cb2d4f69144f9d578383f736610853f59f3ce249 Mon Sep 17 00:00:00 2001 From: thinkgem Date: Tue, 12 Nov 2019 23:30:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E6=B1=A0=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=20jdbc.pool.keepAlive=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/core/src/main/resources/config/jeesite-core.yml | 3 +++ web/src/main/resources/config/application.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/modules/core/src/main/resources/config/jeesite-core.yml b/modules/core/src/main/resources/config/jeesite-core.yml index a4fefa90..42aa5313 100644 --- a/modules/core/src/main/resources/config/jeesite-core.yml +++ b/modules/core/src/main/resources/config/jeesite-core.yml @@ -40,6 +40,9 @@ jdbc: # 一个连接在池中最大空闲的时间,单位毫秒(30分钟)(4.1.2+) maxEvictableIdleTimeMillis: 1800000 + #连接池中的minIdle数量以内的连接,空闲时间超过minEvictableIdleTimeMillis,则会执行keepAlive操作(4.1.8+) + keepAlive: false + # 是否自动回收泄露的连接和超时时间,单位秒(35分钟)(4.0.6+) removeAbandoned: false removeAbandonedTimeout: 2100 diff --git a/web/src/main/resources/config/application.yml b/web/src/main/resources/config/application.yml index a65f9799..32cdb026 100644 --- a/web/src/main/resources/config/application.yml +++ b/web/src/main/resources/config/application.yml @@ -98,6 +98,9 @@ jdbc: # # 一个连接在池中最大空闲的时间,单位毫秒(30分钟)(4.1.2+) # maxEvictableIdleTimeMillis: 1800000 # +# #连接池中的minIdle数量以内的连接,空闲时间超过minEvictableIdleTimeMillis,则会执行keepAlive操作(4.1.8+) +# keepAlive: false +# # # 是否自动回收泄露的连接和超时时间,单位秒(35分钟)(4.0.6+) # removeAbandoned: false # removeAbandonedTimeout: 2100