@Configuration @EnableConfigurationProperties(value=YamlShardingRuleSpringBootConfiguration.class) @ConditionalOnClass(value=org.apache.shardingsphere.sharding.yaml.config.YamlShardingRuleConfiguration.class) @Conditional(value=ShardingSpringBootCondition.class) public class ShardingRuleSpringBootConfiguration extends Object
| 构造器和说明 |
|---|
ShardingRuleSpringBootConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
static ShardingAuditAlgorithmProvidedBeanRegistry |
shardingAuditAlgorithmProvidedBeanRegistry(org.springframework.core.env.Environment environment)
Create sharding auditor algorithm provided bean registry.
|
org.apache.shardingsphere.infra.config.rule.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,
org.springframework.beans.factory.ObjectProvider<Map<String,org.apache.shardingsphere.sharding.spi.ShardingAuditAlgorithm>> shardingAuditAlgorithmProvider)
Create sharding rule configuration bean.
|
@Bean public org.apache.shardingsphere.infra.config.rule.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, org.springframework.beans.factory.ObjectProvider<Map<String,org.apache.shardingsphere.sharding.spi.ShardingAuditAlgorithm>> shardingAuditAlgorithmProvider)
shardingAlgorithmProvider - sharding algorithm providerkeyGenerateAlgorithmProvider - key generate algorithm providershardingAuditAlgorithmProvider - sharding audit 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 - environment@Bean public static ShardingAuditAlgorithmProvidedBeanRegistry shardingAuditAlgorithmProvidedBeanRegistry(org.springframework.core.env.Environment environment)
environment - environmentCopyright © 2022 The Apache Software Foundation. All rights reserved.