@Configuration
@EnableConfigurationProperties(value={SpringBootShardingRuleConfigurationProperties.class,SpringBootMasterSlaveRuleConfigurationProperties.class,SpringBootConfigMapConfigurationProperties.class,SpringBootPropertiesConfigurationProperties.class})
public class SpringBootConfiguration
extends Object
implements org.springframework.context.EnvironmentAware
| 构造器和说明 |
|---|
SpringBootConfiguration() |
@Bean public DataSource dataSource() throws SQLException
SQLException - SQL exceptionpublic final void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment 在接口中 org.springframework.context.EnvironmentAwareCopyright © 2019. All rights reserved.