@Configuration
@EnableConfigurationProperties(value={SpringBootShardingRuleConfigurationProperties.class,SpringBootMasterSlaveRuleConfigurationProperties.class})
public class SpringBootConfiguration
extends Object
implements org.springframework.context.EnvironmentAware
| 构造器和说明 |
|---|
SpringBootConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
DataSource |
dataSource() |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
@Bean public DataSource dataSource() throws SQLException
SQLExceptionpublic void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment 在接口中 org.springframework.context.EnvironmentAwareCopyright © 2017. All rights reserved.