duxinglangzi
2022-05-16 7cf9781edf66c75570af378a96b4011ff63ada92
提交 | 用户 | 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
7cf978 13      *
627420 14      * @param importingClassMetadata
D 15      * @return java.lang.String[]
16      * @author wuqiong 2022-04-23 20:20
17      */
de8c2b 18     @Override
D 19     public String[] selectImports(AnnotationMetadata importingClassMetadata) {
20         return new String[]{CanalBootstrapConfiguration.class.getName()};
21     }
22 }