连接池Druid支持新的配置connectTimeout和socketTimeout(I6CLL8)

This commit is contained in:
RuoYi
2023-02-04 20:11:34 +08:00
parent 10fb654d23
commit 3b75d93d6b
2 changed files with 16 additions and 0 deletions

View File

@ -24,6 +24,10 @@ spring:
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置连接超时时间
connectTimeout: 30000
# 配置网络超时时间
socketTimeout: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒