Class JndiDataSourceAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.jdbc.JndiDataSourceAutoConfiguration
@AutoConfiguration(before={XADataSourceAutoConfiguration.class,DataSourceAutoConfiguration.class})
@ConditionalOnClass({javax.sql.DataSource.class,org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType.class})
@ConditionalOnProperty(prefix="spring.datasource",
name="jndi-name")
@EnableConfigurationProperties(DataSourceProperties.class)
public class JndiDataSourceAutoConfiguration
extends Object
Auto-configuration
for a JNDI located
DataSource
.- Since:
- 1.2.0
- Author:
- Phillip Webb, Andy Wilkinson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondataSource
(DataSourceProperties properties, ApplicationContext context)
-
Constructor Details
-
JndiDataSourceAutoConfiguration
public JndiDataSourceAutoConfiguration()
-
-
Method Details
-
dataSource
@Bean(destroyMethod="") @ConditionalOnMissingBean public DataSource dataSource(DataSourceProperties properties, ApplicationContext context)
-