|
|
@ -24,6 +24,9 @@ import org.apache.dolphinscheduler.dao.plugin.api.DaoPluginConfiguration; |
|
|
|
import org.apache.dolphinscheduler.dao.plugin.api.dialect.DatabaseDialect; |
|
|
|
import org.apache.dolphinscheduler.dao.plugin.api.dialect.DatabaseDialect; |
|
|
|
import org.apache.dolphinscheduler.dao.plugin.api.monitor.DatabaseMonitor; |
|
|
|
import org.apache.dolphinscheduler.dao.plugin.api.monitor.DatabaseMonitor; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.apache.ibatis.mapping.DatabaseIdProvider; |
|
|
|
|
|
|
|
import org.apache.ibatis.mapping.VendorDatabaseIdProvider; |
|
|
|
|
|
|
|
|
|
|
|
import org.mybatis.spring.annotation.MapperScan; |
|
|
|
import org.mybatis.spring.annotation.MapperScan; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; |
|
|
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; |
|
|
@ -61,6 +64,11 @@ public class DaoConfiguration { |
|
|
|
return interceptor; |
|
|
|
return interceptor; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Bean |
|
|
|
|
|
|
|
public DatabaseIdProvider databaseIdProvider() { |
|
|
|
|
|
|
|
return new VendorDatabaseIdProvider(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Bean |
|
|
|
@Bean |
|
|
|
public DbType dbType() { |
|
|
|
public DbType dbType() { |
|
|
|
return daoPluginConfiguration.dbType(); |
|
|
|
return daoPluginConfiguration.dbType(); |
|
|
|