From 5e4fb66dff5fdb51dd415ea23156cc1f9bd2f115 Mon Sep 17 00:00:00 2001 From: F-ca7 <627955292@qq.com> Date: Sat, 14 Jan 2023 04:21:19 +0800 Subject: [PATCH] fix DataSourceConfig loadBalanceEnabled flag --- batch-tool/src/main/java/datasource/DataSourceConfig.java | 1 + 1 file changed, 1 insertion(+) diff --git a/batch-tool/src/main/java/datasource/DataSourceConfig.java b/batch-tool/src/main/java/datasource/DataSourceConfig.java index cd89ead..1393bfd 100644 --- a/batch-tool/src/main/java/datasource/DataSourceConfig.java +++ b/batch-tool/src/main/java/datasource/DataSourceConfig.java @@ -157,6 +157,7 @@ public DataSourceConfig build() { dataSourceConfig.maxWait = this.maxWait; dataSourceConfig.connParam = this.connParam; dataSourceConfig.initSqls = this.initSqls; + dataSourceConfig.loadBalanceEnabled = this.loadBalanceEnabled; String jdbcUrl; if (loadBalanceEnabled) { jdbcUrl = String.format(DataSourceUtil.LOAD_BALANCE_URL_PATTERN,