@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(org.springframework.context.ApplicationContext context) |
Modifier and Type | Method and Description |
---|---|
DataSource |
dataSource(DataSourceProperties properties) |
public JndiDataSourceAutoConfiguration(org.springframework.context.ApplicationContext context)
@Bean(destroyMethod="") @ConditionalOnMissingBean public DataSource dataSource(DataSourceProperties properties)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.