独行的浪子
2022-04-25 af6d64fae2e47bc06da752601a9e72a43c59f3b4
README.md
@@ -38,7 +38,7 @@
public class CanalListenerTest {
    /**
     * 目前 Listener 方法的参数必须为 CanalEntry.EventType eventType, CanalEntry.RowData rowData
     * 目前 Listener 方法的参数必须为 CanalEntry.EventType , CanalEntry.RowData
     * 程序在启动过程中会做检查
     */
@@ -84,7 +84,7 @@
    public void printChange(String method,CanalEntry.EventType eventType, CanalEntry.RowData rowData) {
        if (eventType == CanalEntry.EventType.DELETE) {
            rowData.getAfterColumnsList().stream().collect(Collectors.toList()).forEach(ele -> {
            rowData.getBeforeColumnsList().stream().collect(Collectors.toList()).forEach(ele -> {
                System.out.println("[方法: "+method+" ,  delete 语句 ] --->> 字段名: " + ele.getName() + ", 删除的值为: " + ele.getValue());
            });
        }