Open source code generator, based on the extension mybatis-generator combination freemarker

git source address: https: //github.com/JonSnow592622272/free-generator-code

Source code cloud gitee address: https: //gitee.com/a592622272/free-generator-code (synchronous only come from git)

 

1: What is the free-generator-code.

  free-generator-code is based on a combined expansion mybatis-generator freemarker code generator.

2: Why use free-generator-code

  free-generator-code easier to use, the basic configuration and mybatis unchanged, only the configuration data source and ftl templates directory can be, you do not need to write any java code to generate the code you want.

3: How to use free-generator-code

  Interior contains many templates, you can start with quickstart-example. Mybatis-plus project has the official code generator template is adapted to the current project template directory mybatis-plus-example.

4: What is the difference with mybatis-plus code generator.

  4.1: mybatis-plus you need to write java code configured according to the code you want, and free-generator-code without having to write java code, just change the code template ftl what you want (suggested a separate folder to store a copy since ftl template definition, do not modify the official ftl templates)

  4.2: mybatis-plus starts every time you need to enter the table to be generated, and the free-generator-code only required once generatorConfig.xml configuration.

  4.3: The most important point, free-generator-code support has been modified without affecting the xml file, replace xml file content, such as replacing "resultMap id =" content BaseResultMap "tag replacement rules: 1. Replace only the root .2 child node label according to the same custom attributes to match (default attribute id)

 

Guess you like

Origin www.cnblogs.com/wulm/p/11082169.html