Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

统一变量xml的命名,跟之前保持一致,mapperXml->xml #179

Merged
merged 3 commits into from
Feb 11, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
策略模式支持需要生成的表,输入用字符串,","号隔开
  • Loading branch information
linjierong authored and linjierong committed Feb 10, 2022
commit 25a215dc67f51c8c8662d952f909c08844674aa9
Original file line number Diff line number Diff line change
@@ -505,6 +505,11 @@ public Builder addInclude(@NotNull List<String> includes) {
return this;
}

public Builder addInclude(@NotNull String include) {
this.strategyConfig.include.addAll(Arrays.asList(include.split(",")));
return this;
}

/**
* 增加排除表
*
Original file line number Diff line number Diff line change
@@ -44,11 +44,11 @@ public static void main(String[] args) throws SQLException {
before();
FastAutoGenerator.create(DATA_SOURCE_CONFIG)
// 全局配置
.globalConfig((scanner, builder) -> builder.author(scanner.apply("请输入作者名称?")).fileOverride())
.globalConfig((scanner, builder) -> builder.author(scanner.apply("请输入作者名称")))
// 包配置
.packageConfig((scanner, builder) -> builder.parent(scanner.apply("请输入包名")))
.packageConfig((scanner, builder) -> builder.parent(scanner.apply("请输入包名")))
// 策略配置
.strategyConfig(builder -> builder.addInclude("t_simple"))
.strategyConfig((scanner, builder) -> builder.addInclude(scanner.apply("请输入表名,多个表名用,隔开")))
/*
模板引擎配置,默认 Velocity 可选模板引擎 Beetl 或 Freemarker
.templateEngine(new BeetlTemplateEngine())