Code automatic generation artifact-EasyCode code generator
1. Introduction to EasyCode
EasyCode is a code generation plug-in developed based on the IntelliJ IDEA Ultimate version. It mainly generates all kinds of codes you want through custom templates (based on velocity). Usually used to generate Entity, Dao, Service, Controller. If you have strong hands-on ability, it can also be used to generate HTML, JS, PHP and other codes. In theory, any code related to data can be generated.
Two, IDEA install EasyCode
2.1 Open the settings of idea
2.2 Search and install plugins
2.3 After the installation is complete, restart idea
Three, use
3.1 Use idea's database plugin to configure the database to add a data source
3.2 Automatic code generation
In the database connection configured in the previous step, select the specific table of the library you want to operate, right-click, and select Generate Code to generate code.
3.2 Generate code
The template can be adjusted by yourself, please refer to the wiki for details.
Wiki link: https://gitee.com/makejava/EasyCode/wikis/pages