From aafa76fc90d9d1297ea067528828cad35b741fc6 Mon Sep 17 00:00:00 2001
From: Jay <csj123456>
Date: 星期四, 17 十月 2024 15:06:08 +0800
Subject: [PATCH] 适配pg数据库的初始化查询

---
 iailab-module-data/iailab-module-data-biz/src/main/resources/application-dev.yml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/resources/application-dev.yml b/iailab-module-data/iailab-module-data-biz/src/main/resources/application-dev.yml
index 90f45e0..f01b8c0 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/resources/application-dev.yml
+++ b/iailab-module-data/iailab-module-data-biz/src/main/resources/application-dev.yml
@@ -31,7 +31,7 @@
         time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒
         min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒
         max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒
-        validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效
+        validation-query: select version() # 配置检测连接是否有效
         test-while-idle: true
         test-on-borrow: false
         test-on-return: false

--
Gitblit v1.9.3