From aef48378276f68e495cfa6bb6af46ff636952be4 Mon Sep 17 00:00:00 2001 From: thinkgem Date: Fri, 30 Nov 2018 20:49:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=BF=9E=E6=8E=A5=E6=B1=A0?= =?UTF-8?q?=E6=9C=80=E5=A4=A7=E7=A9=BA=E9=97=B2=E7=9A=84=E6=97=B6=E9=97=B4?= =?UTF-8?q?=EF=BC=8C=E9=BB=98=E8=AE=A430=E5=88=86=E9=92=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/config/jeesite-core.yml | 16 +++++++++------- web/src/main/resources/config/application.yml | 16 +++++++++------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/modules/core/src/main/resources/config/jeesite-core.yml b/modules/core/src/main/resources/config/jeesite-core.yml index 03c12f23..4daa67fa 100644 --- a/modules/core/src/main/resources/config/jeesite-core.yml +++ b/modules/core/src/main/resources/config/jeesite-core.yml @@ -25,22 +25,24 @@ jdbc: # 最大连接数 maxActive: 20 - # 获取连接等待超时时间,单位毫秒(4.0.6+) + # 获取连接等待超时时间,单位毫秒(1分钟)(4.0.6+) maxWait: 60000 - # 从池中取出连接前进行检验,如果检验失败,则从池中去除连接并尝试取出另一个。(4.0.6+) + # 从池中取出连接前进行检验,如果检验失败,则从池中去除连接并尝试取出另一个(4.0.6+) testOnBorrow: false testOnReturn: false - # 间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒(4.0.6+) + # 间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒(1分钟)(4.0.6+) timeBetweenEvictionRunsMillis: 60000 - # 一个连接在池中最小生存的时间,单位毫秒(4.0.6+) - minEvictableIdleTimeMillis: 300000 + # 一个连接在池中最小空闲的时间,单位毫秒(20分钟)(4.0.6+) + minEvictableIdleTimeMillis: 1200000 + # 一个连接在池中最大空闲的时间,单位毫秒(30分钟)(4.1.2+) + maxEvictableIdleTimeMillis: 1800000 - # 配置是否自动回收超时连接,超时时间,单位秒 (4.0.6+) + # 是否自动回收泄露的连接和超时时间,单位秒(10分钟)(4.0.6+) removeAbandoned: true - removeAbandonedTimeout: 1800 + removeAbandonedTimeout: 600 # JTA 分布式事务(v4.0.4+) jta: diff --git a/web/src/main/resources/config/application.yml b/web/src/main/resources/config/application.yml index 1e6b1bb1..e52867fa 100644 --- a/web/src/main/resources/config/application.yml +++ b/web/src/main/resources/config/application.yml @@ -83,22 +83,24 @@ jdbc: # # 最大连接数 # maxActive: 20 # 数据库连接池配置 # -# # 获取连接等待超时时间,单位毫秒(4.0.6+) +# # 获取连接等待超时时间,单位毫秒(1分钟)(4.0.6+) # maxWait: 60000 # -# # 从池中取出连接前进行检验,如果检验失败,则从池中去除连接并尝试取出另一个。(4.0.6+) +# # 从池中取出连接前进行检验,如果检验失败,则从池中去除连接并尝试取出另一个(4.0.6+) # testOnBorrow: false # testOnReturn: false # -# # 间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒(4.0.6+) +# # 间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒(1分钟)(4.0.6+) # timeBetweenEvictionRunsMillis: 60000 # -# # 一个连接在池中最小生存的时间,单位毫秒(4.0.6+) -# minEvictableIdleTimeMillis: 300000 +# # 一个连接在池中最小空闲的时间,单位毫秒(20分钟)(4.0.6+) +# minEvictableIdleTimeMillis: 1200000 +# # 一个连接在池中最大空闲的时间,单位毫秒(30分钟)(4.1.2+) +# maxEvictableIdleTimeMillis: 1800000 # -# # 配置是否自动回收超时连接,超时时间,单位秒 (4.0.6+) +# # 是否自动回收泄露的连接和超时时间,单位秒(10分钟)(4.0.6+) # removeAbandoned: true -# removeAbandonedTimeout: 1800 +# removeAbandonedTimeout: 600 # # 多数据源名称列表,启用方式:@MyBatisDao(dataSourceName="ds2") # dataSourceNames: ds2