renxue
2022-10-24 0b055a3f554da3a934e79e88c4781705cbab5a21
提交 | 用户 | age
0b055a 1 package com.hz.canal.starter.configuration;
R 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
11     /**
12      * 扫描器 导入指定类, 这里导入 CanalBootstrapConfiguration.class
13      *
14      * @param importingClassMetadata
15      * @return java.lang.String[]
16      * @author wuqiong 2022-04-23 20:20
17      */
18     @Override
19     public String[] selectImports(AnnotationMetadata importingClassMetadata) {
20         return new String[]{CanalBootstrapConfiguration.class.getName()};
21     }
22 }