|
@@ -13,15 +13,15 @@ public class Generator {
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
- String db_url = "jdbc:mysql://localhost:3306/aj_report";
|
|
|
- String db_username = "root";
|
|
|
- String db_password = "root";
|
|
|
+ String db_url = "jdbc:mysql://mysql.rxdpdev.svc.k5.bigtree.zone:3306/rxdp_xdata";
|
|
|
+ String db_username = "test_user";
|
|
|
+ String db_password = "tmOxmmc+3jznq2cX";
|
|
|
|
|
|
String javaDir = "C:\\Users\\root\\IdeaProjects\\mybatis_generator_code\\src\\main\\java";
|
|
|
- String parentPackage = "com.bigtree.db";
|
|
|
- String tableName = "transform,param";
|
|
|
+ String parentPackage = "com.bigtreefinance.rxdp.xdata";
|
|
|
+ String tableName = "rxdp_data_set,rxdp_data_set_param,rxdp_data_set_transform,rxdp_data_source";
|
|
|
|
|
|
- String author = "tianyun";
|
|
|
+ String author = "bigtree";
|
|
|
String tablePrefix = "t_";
|
|
|
|
|
|
|
|
@@ -69,7 +69,7 @@ public class Generator {
|
|
|
})
|
|
|
.templateEngine(new FreemarkerTemplateEngine()) // 使用Freemarker引擎模板,默认的是Velocity引擎模板
|
|
|
.templateConfig(builder -> builder.controller("templates/controller1.java")) // 设置为空则不会生成该文件
|
|
|
- //.templateConfig(builder -> builder.service(""))
|
|
|
+ .templateConfig(builder -> builder.service("templates/service1.java"))
|
|
|
.templateConfig(builder -> builder.serviceImpl("templates/serviceImpl1.java"))
|
|
|
.execute();
|
|
|
}
|