@ConditionalOnProperty(prefix="leaf.segment",
name="enabled",
havingValue="true")
@Configuration
public class SegmentConfig
extends Object
| 构造器和说明 |
|---|
SegmentConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
SegmentIDGenImpl |
segmentIDGen(LeafProperty leafProperty,
Map<String,DataSource> dataSourceMap) |
SegmentManagementService |
segmentManagementService(org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping requestMappingHandlerMapping,
SegmentIDGenImpl segmentIDGen,
LeafProperty leafProperty) |
@Bean public SegmentIDGenImpl segmentIDGen(LeafProperty leafProperty, Map<String,DataSource> dataSourceMap)
@Bean
@ConditionalOnProperty(prefix="leaf.segment",
name="manageable",
havingValue="true",
matchIfMissing=true)
public SegmentManagementService segmentManagementService(org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping requestMappingHandlerMapping,
SegmentIDGenImpl segmentIDGen,
LeafProperty leafProperty)
Copyright © 2022 Meituan-Dianping Group. All rights reserved.