CanalClientApp.java 580 B

12345678910111213141516171819
  1. package com.atguigu.tingshu;
  2. import io.xzxj.canal.spring.annotation.EnableCanalListener;
  3. import org.springframework.boot.SpringApplication;
  4. import org.springframework.boot.autoconfigure.SpringBootApplication;
  5. import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
  6. /**
  7. * @author: atguigu
  8. * @create: 2025-03-21 15:46
  9. */
  10. @EnableCanalListener
  11. @SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
  12. public class CanalClientApp {
  13. public static void main(String[] args) {
  14. SpringApplication.run(CanalClientApp.class, args);
  15. }
  16. }