From 0b055a3f554da3a934e79e88c4781705cbab5a21 Mon Sep 17 00:00:00 2001 From: renxue <auster_i@163.com> Date: 星期一, 24 十月 2022 11:40:26 +0800 Subject: [PATCH] 修改包下的类名 --- src/main/java/com/hz/canal/starter/configuration/CanalBootstrapConfiguration.java | 70 +++++++++++++++++----------------- 1 files changed, 35 insertions(+), 35 deletions(-) diff --git a/src/main/java/com/duxinglangzi/canal/starter/configuration/CanalBootstrapConfiguration.java b/src/main/java/com/hz/canal/starter/configuration/CanalBootstrapConfiguration.java similarity index 95% rename from src/main/java/com/duxinglangzi/canal/starter/configuration/CanalBootstrapConfiguration.java rename to src/main/java/com/hz/canal/starter/configuration/CanalBootstrapConfiguration.java index 4ec1a93..345097d 100644 --- a/src/main/java/com/duxinglangzi/canal/starter/configuration/CanalBootstrapConfiguration.java +++ b/src/main/java/com/hz/canal/starter/configuration/CanalBootstrapConfiguration.java @@ -1,35 +1,35 @@ -package com.duxinglangzi.canal.starter.configuration; - -import org.springframework.beans.factory.support.BeanDefinitionRegistry; -import org.springframework.beans.factory.support.RootBeanDefinition; -import org.springframework.context.annotation.ImportBeanDefinitionRegistrar; -import org.springframework.core.type.AnnotationMetadata; - -/** - * @author wuqiong 2022/4/12 - */ -public class CanalBootstrapConfiguration implements ImportBeanDefinitionRegistrar { - - public static final String CANAL_LISTENER_ANNOTATION_PROCESSOR_BEAN_NAME = - "com.duxinglangzi.canal.starter.configuration.CanalListenerAnnotationBeanPostProcessor"; - - /** - * 娉ㄥ唽 CanalListenerAnnotationBeanPostProcessor 鍒皊pring bean 瀹瑰櫒鍐� - * - * @param importingClassMetadata - * @param registry - * @return void - * @author wuqiong 2022-04-23 20:21 - */ - @Override - public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) { - if (!registry.containsBeanDefinition(CANAL_LISTENER_ANNOTATION_PROCESSOR_BEAN_NAME)) { - - registry.registerBeanDefinition(CANAL_LISTENER_ANNOTATION_PROCESSOR_BEAN_NAME, - new RootBeanDefinition(CanalListenerAnnotationBeanPostProcessor.class)); - } - - - } - -} +package com.hz.canal.starter.configuration; + +import org.springframework.beans.factory.support.BeanDefinitionRegistry; +import org.springframework.beans.factory.support.RootBeanDefinition; +import org.springframework.context.annotation.ImportBeanDefinitionRegistrar; +import org.springframework.core.type.AnnotationMetadata; + +/** + * @author wuqiong 2022/4/12 + */ +public class CanalBootstrapConfiguration implements ImportBeanDefinitionRegistrar { + + public static final String CANAL_LISTENER_ANNOTATION_PROCESSOR_BEAN_NAME = + "com.duxinglangzi.canal.starter.configuration.CanalListenerAnnotationBeanPostProcessor"; + + /** + * 娉ㄥ唽 CanalListenerAnnotationBeanPostProcessor 鍒皊pring bean 瀹瑰櫒鍐� + * + * @param importingClassMetadata + * @param registry + * @return void + * @author wuqiong 2022-04-23 20:21 + */ + @Override + public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) { + if (!registry.containsBeanDefinition(CANAL_LISTENER_ANNOTATION_PROCESSOR_BEAN_NAME)) { + + registry.registerBeanDefinition(CANAL_LISTENER_ANNOTATION_PROCESSOR_BEAN_NAME, + new RootBeanDefinition(CanalListenerAnnotationBeanPostProcessor.class)); + } + + + } + +} -- Gitblit v1.8.0