1、mysql中创建表,注意,mysql要开启binlog,否则报错
CREATE TABLE `cdc_user` (
`id` BIGINT(11) NOT NULL,
`name` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_bin',
`type` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_bin',
`desc` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_bin',
`deleted` INT(11) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
)
COMMENT='cdc测试user类'
COLLATE='utf8mb4_bin'
ENGINE=InnoDB;
里面的数据
2、创建maven项目,导入依赖
<?xml version&#