renxue
2022-10-24 0b055a3f554da3a934e79e88c4781705cbab5a21
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.hz.canal.starter.configuration;
 
import org.springframework.context.annotation.DeferredImportSelector;
import org.springframework.core.type.AnnotationMetadata;
 
/**
 * @author wuqiong 2022/4/12
 */
public class CanalConfigurationSelector implements DeferredImportSelector {
 
    /**
     * 扫描器 导入指定类, 这里导入 CanalBootstrapConfiguration.class
     *
     * @param importingClassMetadata
     * @return java.lang.String[]
     * @author wuqiong 2022-04-23 20:20
     */
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[]{CanalBootstrapConfiguration.class.getName()};
    }
}