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); } }