This commit is contained in:
luming 2021-04-17 20:57:50 +08:00
parent 532eeb6026
commit 9f6876f1cd
2 changed files with 4 additions and 0 deletions

View File

@ -6,3 +6,5 @@ pluginManagement {
}
}
rootProject.name = 'code-generator'
include 'timemail'

View File

@ -21,6 +21,7 @@ public class Main {
* </p>
*/
public static String scanner(String tip) {
System.out.printf("当前路径"+System.getProperty("user.dir"));
Scanner scanner = new Scanner(System.in);
StringBuilder help = new StringBuilder();
help.append("请输入" + tip + "");
@ -127,6 +128,7 @@ public class Main {
strategy.setSuperControllerClass("你自己的父类控制器,没有就不用设置!");
// 写于父类中的公共字段
strategy.setSuperEntityColumns("id");
strategy.setTablePrefix("tm_");
strategy.setInclude(scanner("表名,多个英文逗号分割").split(","));
strategy.setControllerMappingHyphenStyle(true);
strategy.setTablePrefix(pc.getModuleName() + "_");