@Configuration @ConditionalOnClass(value={javax.sql.DataSource.class,}) @EnableConfigurationProperties(value=DataSourceProperties.class) @Import(value={org.springframework.boot.autoconfigure.jdbc.DataSourceInitializerPostProcessor.Registrar.class,DataSourcePoolMetadataProvidersConfiguration.class}) public class DataSourceAutoConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
DataSourceAutoConfiguration.DataSourceInitializerConfiguration |
protected static class |
DataSourceAutoConfiguration.EmbeddedConfiguration |
protected static class |
DataSourceAutoConfiguration.JdbcTemplateConfiguration |
protected static class |
DataSourceAutoConfiguration.NonEmbeddedConfiguration |
Constructor and Description |
---|
DataSourceAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsAutoConfiguredDataSource(ConfigurableListableBeanFactory beanFactory)
Determines if the
dataSource being used by Spring was created from
EmbeddedDataSourceConfiguration . |
public static boolean containsAutoConfiguredDataSource(ConfigurableListableBeanFactory beanFactory)
dataSource
being used by Spring was created from
EmbeddedDataSourceConfiguration
.Copyright © 2014 Pivotal Software, Inc.. All rights reserved.