Tuantuan Code Generator V2.0: One-click generation of complete CRUD functions (heavy attack!)

Foreword: Considering that the previous V1.0 version only supported MySQL database, it is a bit limited, because a mainstream Oracle database will be used in the actual project development, so I enhanced the V1.0 version, the new Added the generation of Oracle database CRUD function, the use process is still as simple as the V1.0 version!

It is not easy for conscientious bloggers to be original, please support us three times, and promise that the code generator will always be free and open source to everyone! ┭┮﹏┭┮

Table of contents

1. Project introduction

2. Update content

3. Historical version

4. Gitee source code

5. Tutorial

4.1. Configure application-mysql.yml database connection information

4.2. Configure application-oracle.yml database connection information

4.3. Configure the application.yml file

4.4. Running unit tests

6. Summary


1. Project introduction

The code generator developed by the blogger this time supports two mainstream databases, MySQL and Oracle, and supports the addition, deletion, modification and query of a single piece of data and the batch addition, modification, and deletion of multiple pieces of data. After configuring the information, the generator will automatically Generate the corresponding code file, and then copy it to your own project!

2. Update content

On the basis of V1.0, the code generation for Oracle database has been added .

3. Historical version

Tuan Tuan Code Generator V1.0: Tuan Tuan Code Generator V1.0: One-click generation of complete CRUD functions (Gitee source code provided)

4. Gitee source code

Code Cloud Address: Tuantuan Code Generator V2.0: Generate complete CRUD functions with one click

5. Tutorial

4.1. Configure application-mysql.yml database connection information

Fill in your own database information.

4.2. Configure application-oracle.yml database connection information

Fill in your own database information.

4.3. Configure the application.yml file

1. The specified database can only be mysql and oracle, because different configuration files will be dynamically read!

2. The name of the table you want to generate (tableName).

3. The generated code file storage path (url).

4.4. Running unit tests

After configuring the information, just run it directly.

The overall operation is still very simple. 

6. Summary

The above is the code generator V2.0 version prepared by the blogger for you. The generated code blogger has actually tested it for you. It can be used in your own actual project development, which can save a lot of tedious time. It is free and open source to Everyone! It is not easy for conscientious bloggers to create, please support Sanlian!

Guess you like

Origin blog.csdn.net/HJW_233/article/details/132361742