1. 减少 mybatis 日志打印

2. 降低 local 环境的初始连接

目的:提升项目的启动速度
This commit is contained in:
YunaiV
2023-09-16 17:05:11 +08:00
parent 4fedb6be0b
commit be7ee3e447
12 changed files with 64 additions and 42 deletions

View File

@@ -26,8 +26,8 @@ spring:
multi-statement-allow: true
dynamic: # 多数据源配置
druid: # Druid 【连接池】相关的全局配置
initial-size: 5 # 初始连接数
min-idle: 10 # 最小连接池数量
initial-size: 1 # 初始连接数
min-idle: 1 # 最小连接池数量
max-active: 20 # 最大连接池数量
max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒
time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒