org.zodiac.autoconfigure.datasource.jdbc.JdbcDruidDataSourceAutoConfiguration Maven / Gradle / Ivy
package org.zodiac.autoconfigure.datasource.jdbc;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
@SpringBootConfiguration
@ConditionalOnProperty(name = org.zodiac.datasource.jdbc.constants.DataSourceSystemPropertiesConstants.SPRING_DATASOURCE_DRUID_ENABLED, havingValue = "true")
public class JdbcDruidDataSourceAutoConfiguration {
public JdbcDruidDataSourceAutoConfiguration() {
}
@Bean
@ConditionalOnMissingBean
@ConfigurationProperties(prefix = org.zodiac.datasource.jdbc.constants.DataSourceSystemPropertiesConstants.SPRING_DATASOURCE_DRUID_PREFIX)
protected DruidDataSourceProperties druidDataSourceProperties() {
return new DruidDataSourceProperties();
}
}