@Configuration
@EnableConfigurationProperties(value={SpringBootShardingRuleConfigurationProperties.class,SpringBootMasterSlaveRuleConfigurationProperties.class,SpringBootEncryptRuleConfigurationProperties.class,SpringBootPropertiesConfigurationProperties.class})
@ConditionalOnProperty(prefix="spring.shardingsphere",
name="enabled",
havingValue="true",
matchIfMissing=true)
public class SpringBootConfiguration
extends Object
implements org.springframework.context.EnvironmentAware
| Constructor and Description |
|---|
SpringBootConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
dataSource()
Get data source bean.
|
void |
setEnvironment(org.springframework.core.env.Environment environment) |
@Bean public DataSource dataSource() throws SQLException
SQLException - SQL exceptionpublic final void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment in interface org.springframework.context.EnvironmentAwareCopyright © 2019 The Apache Software Foundation. All rights reserved.