public static MySqlSource<String> getMysqlSource(){ return MySqlSource.<String>builder() .hostname(FinancialLeaseCommon.MYSQL_HOSTNAME) .port(FinancialLeaseCommon.MYSQL_PORT) .databaseList(FinancialLeaseCommon.FINANCIAL_LEASE_CONFIG_DATABASE) .tableList(FinancialLeaseCommon.FINANCIAL_LEASE_CONFIG_TABLE) .username(FinancialLeaseCommon.MYSQL_USERNAME) .password(FinancialLeaseCommon.MYSQL_PASSWD) .startupOptions(StartupOptions.initial()) .deserializer(new JsonDebeziumDeserializationSchema()) .build(); }
FlinkCDC创建数据源
于 2023-10-07 15:47:54 首次发布