com.github.xiaoyuge5201.config.DataSourceAutoConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datasource-spring-boot-starter Show documentation
Show all versions of datasource-spring-boot-starter Show documentation
数据库连接工具,查询mysql、oracle、sqlserver、postgresql的数据表以及字段信息;同时支持导出数据库设计文档
The 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