Commit 207ec20c by giaogiao

优化代码生成器

parent 79172eec
......@@ -25,6 +25,8 @@ import io.geekidea.springbootplus.generator.constant.GeneratorConstant;
import io.geekidea.springbootplus.generator.properties.GeneratorProperties;
import org.springframework.stereotype.Component;
import java.util.Scanner;
/**
* spring-boot-plus代码生成器入口类
*
......@@ -40,7 +42,12 @@ public class SpringBootPlusGenerator {
* @param args
*/
public static void main(String[] args) {
getCode("123");
Scanner sc = new Scanner(System.in);
System.out.println("请输入表名称:");
String name = sc.nextLine();
getCode(name);
}
private static void getCode(String tableName) {
......@@ -51,7 +58,7 @@ public class SpringBootPlusGenerator {
.setMavenModuleName("common")
.setParentPackage("com.jumeirah.common")
// .setModuleName("api-app")
.setAuthor("wei")
.setAuthor("xxx") // 设置作者名称
.setFileOverride(true);
// 设置表信息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment