From c13d39cf5032205f454ea7a11740e601be671eb5 Mon Sep 17 00:00:00 2001 From: SZH <szh_hello@163.com> Date: 星期四, 11 八月 2022 18:41:29 +0800 Subject: [PATCH] 修改数据源配置 --- safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigIncidentManage.java | 2 +- safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigGoalManage.java | 2 +- safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigEquipment.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigEquipment.java b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigEquipment.java index ad051a5..0237202 100644 --- a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigEquipment.java +++ b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigEquipment.java @@ -46,7 +46,7 @@ throws Exception { MybatisSqlSessionFactoryBean factoryBean = new MybatisSqlSessionFactoryBean(); - factoryBean.setDataSource(dataSource); + factoryBean.setDataSource(dsEquipment); ResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(); //------------------- diff --git a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigGoalManage.java b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigGoalManage.java index 484e9ca..eebd824 100644 --- a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigGoalManage.java +++ b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigGoalManage.java @@ -46,7 +46,7 @@ throws Exception { MybatisSqlSessionFactoryBean factoryBean = new MybatisSqlSessionFactoryBean(); - factoryBean.setDataSource(dataSource); + factoryBean.setDataSource(dsGoalManage); ResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(); //------------------- diff --git a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigIncidentManage.java b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigIncidentManage.java index d372a3d..73504d4 100644 --- a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigIncidentManage.java +++ b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigIncidentManage.java @@ -46,7 +46,7 @@ throws Exception { MybatisSqlSessionFactoryBean factoryBean = new MybatisSqlSessionFactoryBean(); - factoryBean.setDataSource(dataSource); + factoryBean.setDataSource(dsIncidentManage); ResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(); //------------------- -- Gitblit v1.9.2