From b81435aacac29caa70442b5b4070331b329f65e2 Mon Sep 17 00:00:00 2001 From: 94464562 <45187888+94464562@users.noreply.github.com> Date: Sat, 19 Oct 2024 11:49:27 +0800 Subject: [PATCH] remove dbsource from cache remove dbsource from cache --- .../java/org/jeecg/common/util/dynamic/db/DynamicDBUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/dynamic/db/DynamicDBUtil.java b/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/dynamic/db/DynamicDBUtil.java index ffcc553d..73eda632 100644 --- a/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/dynamic/db/DynamicDBUtil.java +++ b/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/dynamic/db/DynamicDBUtil.java @@ -106,9 +106,10 @@ public class DynamicDBUtil { dataSource.getConnection().commit(); dataSource.getConnection().close(); dataSource.close(); + DataSourceCachePool.removeCache(dbKey); } } catch (SQLException e) { - e.printStackTrace(); + log.info(e.getMessage(), e); } }