Browse Source

canal集成

4.0
yaoq 2 years ago
parent
commit
cbeefa22c0
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      smtweb-framework/canal/client/src/main/java/cc/smtweb/system/canal/example/ClientInstance.java
  2. +2
    -2
      smtweb-framework/canal/client/src/main/resources/client.properties

+ 1
- 1
smtweb-framework/canal/client/src/main/java/cc/smtweb/system/canal/example/ClientInstance.java View File

@@ -318,7 +318,7 @@ public class ClientInstance {
}*/ }*/
} }
file.createNewFile(); file.createNewFile();
if (file.exists()) logger.debug("canal文件生成成功:" + file.getName());
if (file.exists()) logger.debug("canal文件生成成功:" + file.getAbsolutePath());
return file; return file;
} }




+ 2
- 2
smtweb-framework/canal/client/src/main/resources/client.properties View File

@@ -10,7 +10,7 @@ canal.server.username=
canal.server.password= canal.server.password=
# 数据库匹配规则.*\\..*, scmz\\..* # 数据库匹配规则.*\\..*, scmz\\..*
canal.server.filter=scmz\\..* canal.server.filter=scmz\\..*
# 文件存放路径
canal.file.path=E:/canalFile
# 文件存放路径 E:/canalFile
canal.file.path=





Loading…
Cancel
Save