From 24fa7cc98e04dd04d0a3ca1af6f40a2c05025279 Mon Sep 17 00:00:00 2001
From: SZH <szh_hello@163.com>
Date: 星期五, 24 二月 2023 10:48:14 +0800
Subject: [PATCH] 事故管理 事故快报修改 bugfix

---
 safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigGoalManage.java |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

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 eebd824..e2bef6c 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
@@ -1,7 +1,5 @@
 package com.gkhy.safePlatform.config.database;
 
-import com.alibaba.druid.pool.DruidDataSource;
-import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder;
 import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
 import com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean;
 import org.apache.ibatis.plugin.Interceptor;
@@ -35,14 +33,8 @@
     @Autowired
     private MybatisPlusInterceptor mybatisPlusInterceptor;
 
-    @Bean(name = "dataSourceGoalManage")
-    @ConfigurationProperties(prefix = "spring.datasource.goalmanage")
-    public DruidDataSource dataSourceGoalManage(){
-        return DruidDataSourceBuilder.create().build();
-    }
-
     @Bean(name = "sqlFactoryGoalManage")
-    public SqlSessionFactory sqlSessionFactory(@Qualifier("dataSourceGoalManage") DruidDataSource dataSource)
+    public SqlSessionFactory sqlSessionFactory()
             throws Exception
     {
         MybatisSqlSessionFactoryBean factoryBean = new MybatisSqlSessionFactoryBean();

--
Gitblit v1.9.2