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