提交 | 用户 | age
|
0b055a
|
1 |
package com.hz.canal.starter.annotation; |
R |
2 |
|
|
3 |
import com.hz.canal.starter.configuration.CanalAutoConfigurationProperties; |
|
4 |
import com.hz.canal.starter.configuration.CanalConfigurationSelector; |
|
5 |
import com.hz.canal.starter.listener.ApplicationReadyListener; |
|
6 |
import org.springframework.context.annotation.Import; |
|
7 |
|
|
8 |
import java.lang.annotation.*; |
|
9 |
|
|
10 |
/** |
|
11 |
* 开启 canal listener |
|
12 |
* |
|
13 |
* @author wuqiong 2022/8/4 |
|
14 |
*/ |
|
15 |
@Documented |
|
16 |
@Inherited |
|
17 |
@Target(ElementType.TYPE) |
|
18 |
@Retention(RetentionPolicy.RUNTIME) |
|
19 |
@Import({CanalAutoConfigurationProperties.class, CanalConfigurationSelector.class, ApplicationReadyListener.class}) |
|
20 |
public @interface EnableCanalListener { |
|
21 |
} |