whyclxw
2021-04-16 bc69b7b1d77f5e1295bd45b7dc401673eef46e54
提交
2个文件已修改
6 ■■■■ 已修改文件
src/test/java/com/example/lxw/GeneratorCode.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
target/test-classes/com/example/lxw/GeneratorCode.class 补丁 | 查看 | 原始文档 | blame | 历史
src/test/java/com/example/lxw/GeneratorCode.java
@@ -63,7 +63,7 @@
        strategy.setLogicDeleteFieldName("deleted");
        // 自动填充配置
        TableFill gmtCreate = new TableFill("gmt_create", FieldFill.INSERT);
        TableFill gmtModified = new TableFill("gmt_modified",FieldFill.INSERT_UPDATE);
        TableFill gmtModified = new TableFill("gmt_modified", FieldFill.INSERT_UPDATE);
        ArrayList<TableFill> tableFills = new ArrayList<>();
        tableFills.add(gmtCreate);
        tableFills.add(gmtModified);
@@ -71,8 +71,8 @@
        // 乐观锁
        strategy.setVersionFieldName("version");
        strategy.setRestControllerStyle(true);
        strategy.setControllerMappingHyphenStyle(true); //localhost:8080/hello_id_2mpg.setStrategy(strategy);
        strategy.setControllerMappingHyphenStyle(true); //localhost:8080/hello_id_2
        mpg.setStrategy(strategy);
        mpg.execute(); //执行
    }
}
target/test-classes/com/example/lxw/GeneratorCode.class
Binary files differ