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

org.zodiac.autoconfigure.datasource.jdbc.JdbcDruidDataSourceAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy