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