@Configuration @ConditionalOnClass(value={javax.sql.DataSource.class,org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType.class}) @EnableConfigurationProperties(value=DataSourceProperties.class) public class JndiDataSourceAutoConfiguration extends Object
Auto-configuration
for a JNDI located
DataSource
.Constructor and Description |
---|
JndiDataSourceAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
DataSource |
dataSource(DataSourceProperties properties) |
@Bean(destroyMethod="") @ConditionalOnMissingBean public DataSource dataSource(DataSourceProperties properties)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.