From 5d25963a30cb40a228ab8e1961ed25fce3ab55a7 Mon Sep 17 00:00:00 2001 From: NH-LHG Date: Thu, 8 Jun 2023 16:25:57 +0800 Subject: [PATCH] =?UTF-8?q?[init]=E5=88=9B=E5=BB=BA=E8=83=BD=E8=BE=89erp?= =?UTF-8?q?=20=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-prod.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/jeecg-boot-module-system/src/main/resources/application-prod.yml b/jeecg-boot-module-system/src/main/resources/application-prod.yml index 36c8fb8..089a28b 100644 --- a/jeecg-boot-module-system/src/main/resources/application-prod.yml +++ b/jeecg-boot-module-system/src/main/resources/application-prod.yml @@ -121,14 +121,14 @@ spring: # 初始化大小,最小,最大 initial-size: 5 min-idle: 5 - maxActive: 20 + maxActive: 1000 # 配置获取连接等待超时的时间 maxWait: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 timeBetweenEvictionRunsMillis: 60000 # 配置一个连接在池中最小生存的时间,单位是毫秒 minEvictableIdleTimeMillis: 300000 - validationQuery: SELECT 1 + validationQuery: SELECT 1 FROM DUAL testWhileIdle: true testOnBorrow: false testOnReturn: false @@ -155,8 +155,7 @@ spring: #redis 配置 redis: database: 0 - host: 172.18.0.3 - #host: 127.0.0.1 + host: 127.0.0.1 lettuce: pool: max-active: 8 #最大连接数据库连接数,设 -1 为没有限制