All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.xiaoyuge5201.config.DataSourceAutoConfiguration Maven / Gradle / Ivy

Go to download

数据库连接工具,查询mysql、oracle、sqlserver、postgresql的数据表以及字段信息;同时支持导出数据库设计文档

There is a newer version: 2.1
Show newest version
package com.github.xiaoyuge5201.config;


import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author xiaoyuge
 */
@ConditionalOnClass(DataSourceClient.class)
@Configuration
@EnableConfigurationProperties(MyDataSourceProperties.class)
public class DataSourceAutoConfiguration {

    @Bean
    public DataSourceClient dataSourceClient(MyDataSourceProperties dataSourceProperties) {
        return DataSourceClient.create(dataSourceProperties);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy