@Configuration @EnableConfigurationProperties(value=DBProperties.class) public class DatabaseAutoConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DBProperties |
props |
| Constructor and Description |
|---|
DatabaseAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected DataSource |
buildDataSource() |
DataSource |
demoDS() |
protected void |
logDriverInconsistencies(String explicitDriverClassName,
String springDriverClassName) |
DataSource |
webDS() |
DataSource |
webEventDS() |
DataSource |
webSecureDS() |
DataSource |
webStorageDS() |
@Autowired protected DBProperties props
@ConditionalOnMissingBean(name="webDS") @Bean @Primary public DataSource webDS() throws ClassNotFoundException
ClassNotFoundException@ConditionalOnMissingBean(name="webSecureDS") @Bean public DataSource webSecureDS() throws ClassNotFoundException
ClassNotFoundException@ConditionalOnMissingBean(name="webStorageDS") @Bean public DataSource webStorageDS() throws ClassNotFoundException
ClassNotFoundException@ConditionalOnMissingBean(name="webEventDS") @Bean public DataSource webEventDS() throws ClassNotFoundException
ClassNotFoundException@ConditionalOnMissingBean(name="demoDS") @ConditionalOnClass(name="com.blcdemo.core.domain.PDSite") @Bean public DataSource demoDS() throws ClassNotFoundException
ClassNotFoundExceptionprotected DataSource buildDataSource() throws ClassNotFoundException
ClassNotFoundExceptionCopyright © 2025. All rights reserved.