1. Environmental

  • language: kotlin
  • JavaVersion: 1.8.0 comes with _261

2. Instructions

Note: Only mysql, Oracle, and PostGRE are supported

1. Double-click the JAR package to connect to the database and prepare to take off

Keep a connection record and just go through the history to find the library you want to connect to

The database field is used for postGRE. Other databases can be left unfilled

2. Select the table you want to build, configure the path, and build the project

    1. Configure the backend path (empty, otherwise a temp folder will be generated in the current path, where the generated code will be stored).
    1. Configure the package prefix (this is important because it relates to the package that generates the file!)
    1. Generate the class you want to generate (the generate front end project is not done yet)

1. 3. How do you do?

3.1 Generate POJO renderings

3.2 Generate mapper renderings

3.3 Generate service renderings

3.4 Generate renderings of controller

4. Note

The template used above is written dead in 1.0. Version 2.0 supports customized templates. The file path is conf/ generatetemplate.js. The default template has not been written yet. The syntax is ES5.1. Please send your own templates to me.

5. Download

  • The source address
  • Dbutil-2.0 (custom template) Getee address
  • Dbutil-1.0 (default template) Getee address
  • Dbutil-0.1 (project prototype) GeTEE address