duxinglangzi
2022-04-23 6274208525b7e80c208f614915ef973d63834101
src/main/java/com/duxinglangzi/canal/starter/configuration/CanalConfigurationSelector.java
@@ -5,10 +5,15 @@
/**
 * @author wuqiong 2022/4/12
 * @description
 */
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()};