@Configuration @EnableConfigurationProperties(value=YamlShardingRuleSpringBootConfiguration.class) @ConditionalOnClass(value=org.apache.shardingsphere.sharding.yaml.config.YamlShardingRuleConfiguration.class) @Conditional(value=ShardingSpringBootCondition.class) public class ShardingRuleSpringBootConfiguration extends Object
| Constructor and Description |
|---|
ShardingRuleSpringBootConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
static KeyGenerateAlgorithmProvidedBeanRegistry |
keyGenerateAlgorithmProvidedBeanRegistry(org.springframework.core.env.Environment environment)
Create key generator algorithm provided bean registry.
|
static ShardingAlgorithmProvidedBeanRegistry |
shardingAlgorithmProvidedBeanRegistry(org.springframework.core.env.Environment environment)
Create sharding algorithm provided bean registry.
|
org.apache.shardingsphere.infra.config.RuleConfiguration |
shardingRuleConfiguration(org.springframework.beans.factory.ObjectProvider<Map<String,org.apache.shardingsphere.sharding.spi.ShardingAlgorithm>> shardingAlgorithmProvider,
org.springframework.beans.factory.ObjectProvider<Map<String,org.apache.shardingsphere.sharding.spi.KeyGenerateAlgorithm>> keyGenerateAlgorithmProvider)
Create sharding rule configuration bean.
|
@Bean public org.apache.shardingsphere.infra.config.RuleConfiguration shardingRuleConfiguration(org.springframework.beans.factory.ObjectProvider<Map<String,org.apache.shardingsphere.sharding.spi.ShardingAlgorithm>> shardingAlgorithmProvider, org.springframework.beans.factory.ObjectProvider<Map<String,org.apache.shardingsphere.sharding.spi.KeyGenerateAlgorithm>> keyGenerateAlgorithmProvider)
shardingAlgorithmProvider - sharding algorithm providerkeyGenerateAlgorithmProvider - key generate algorithm provider@Bean public static ShardingAlgorithmProvidedBeanRegistry shardingAlgorithmProvidedBeanRegistry(org.springframework.core.env.Environment environment)
environment - environment@Bean public static KeyGenerateAlgorithmProvidedBeanRegistry keyGenerateAlgorithmProvidedBeanRegistry(org.springframework.core.env.Environment environment)
environment - environmentCopyright © 2022 The Apache Software Foundation. All rights reserved.