@Configuration(proxyBeanMethods=false) @AutoConfigureBefore(value={XADataSourceAutoConfiguration.class,DataSourceAutoConfiguration.class}) @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() |
Modifier and Type | Method and Description |
---|---|
DataSource |
dataSource(DataSourceProperties properties,
ApplicationContext context) |
@Bean(destroyMethod="") @ConditionalOnMissingBean public DataSource dataSource(DataSourceProperties properties, ApplicationContext context)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.