guang
2024-06-15 b9f78f6463160cb30f6cc276531c3ecc4c7834ee
提交 | 用户 | 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 }