新增MySQL和pg数据库的同步
This commit is contained in:
@@ -29,7 +29,7 @@ public class demo {
|
||||
.pathInfo(Collections.singletonMap(OutputFile.xml, System.getProperty("user.dir") + "/src/main/resources/mapper"));
|
||||
})
|
||||
.strategyConfig(builder -> {
|
||||
builder.addInclude("biz_sync_task,biz_db_config")
|
||||
builder.addInclude("biz_sync_task")
|
||||
.addTablePrefix("biz_")
|
||||
.entityBuilder()
|
||||
.enableLombok()
|
||||
@@ -45,7 +45,8 @@ public class demo {
|
||||
.formatServiceImplFileName("%sServiceImpl")
|
||||
.mapperBuilder()
|
||||
.enableBaseResultMap()
|
||||
.enableBaseColumnList();
|
||||
.enableBaseColumnList()
|
||||
.enableFileOverride(); // 开启mapper接口和xml文件覆盖
|
||||
})
|
||||
.templateEngine(new FreemarkerTemplateEngine())
|
||||
.execute();
|
||||
|
||||
Reference in New Issue
Block a user