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/annotation/CanalListener.java | 82 ++++++++++++++++++++-------------------- 1 files changed, 41 insertions(+), 41 deletions(-) diff --git a/src/main/java/com/duxinglangzi/canal/starter/annotation/CanalListener.java b/src/main/java/com/hz/canal/starter/annotation/CanalListener.java similarity index 93% rename from src/main/java/com/duxinglangzi/canal/starter/annotation/CanalListener.java rename to src/main/java/com/hz/canal/starter/annotation/CanalListener.java index 6d0e7f9..14b081d 100644 --- a/src/main/java/com/duxinglangzi/canal/starter/annotation/CanalListener.java +++ b/src/main/java/com/hz/canal/starter/annotation/CanalListener.java @@ -1,41 +1,41 @@ -package com.duxinglangzi.canal.starter.annotation; - - -import com.alibaba.otter.canal.protocol.CanalEntry; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - - -/** - * @author wuqiong 2022/4/11 - */ -@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE}) -@Retention(RetentionPolicy.RUNTIME) -public @interface CanalListener { - - - /** - * 濡傛灉鏈繘琛岄厤缃紝鍒欎娇鐢ㄩ厤缃枃浠堕噷鍏ㄩ儴 destination - */ - String destination() default ""; - - /** - * 鏁版嵁搴撳悕 - */ - String database() default ""; - - /** - * 鏁版嵁琛ㄥ悕 - */ - String[] table() default ""; - - /** - * 鏁版嵁鍙樺姩绫诲瀷锛屾澶勮娉ㄦ剰锛岄粯璁や笉鍖呭惈 DDL - */ - CanalEntry.EventType[] eventType(); - - -} +package com.hz.canal.starter.annotation; + + +import com.alibaba.otter.canal.protocol.CanalEntry; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + + +/** + * @author wuqiong 2022/4/11 + */ +@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE}) +@Retention(RetentionPolicy.RUNTIME) +public @interface CanalListener { + + + /** + * 濡傛灉鏈繘琛岄厤缃紝鍒欎娇鐢ㄩ厤缃枃浠堕噷鍏ㄩ儴 destination + */ + String destination() default ""; + + /** + * 鏁版嵁搴撳悕 + */ + String database() default ""; + + /** + * 鏁版嵁琛ㄥ悕 + */ + String[] table() default ""; + + /** + * 鏁版嵁鍙樺姩绫诲瀷锛屾澶勮娉ㄦ剰锛岄粯璁や笉鍖呭惈 DDL + */ + CanalEntry.EventType[] eventType(); + + +} -- Gitblit v1.8.0