Scenes
EasyCode is to generate code based on IntelliJ IDEA plugin development, support any custom template (Java, html, js, xml). As long as the database-related code can be generated by a custom template. Supported database types and configuration types are mapped to java. Support multiple tables at the same time generating the code generated. Each table has a separate configuration information. Fully personalized definitions, rules, set by you.
Official Documents
https://gitee.com/makejava/EasyCode
Online installation
Local installation
Download offline package
https://gitee.com/makejava/EasyCode/releases
note:
If IDEA version is too low, line installation is not search plug-in, but does not work when offline installation package. There is also a corresponding minimum version requirements.
Here is the IDEA 2019.2
Note:
Blog:
https://blog.csdn.net/badao_liumang_qizhi
public concern number of
programs overbearing ape
acquisition-related programming e-books, tutorials and push for free download.
achieve
Detailed Online below to install an example of the use of EasyCode
Online installation
Open IDEA - File-Settings-Plugins, search Easy Code, click Install
After successful installation, you need to restart IDEA
After the restart there will EasyCode option under Settings, where you can configure the templates.
Using the generated code EasyCode
New SpringBoot project, click Add --Mysql in the right side panel DataSource
At this time, according to the database configuration information, click Test Connection, you are prompted to lack drive
If at this time you click on Download Driver Files, because the network reasons prompt timeout, then
Right-click on the left side of the connection --Go to Driver
At this point we will delete the original report red drive
Then right click + Add
This is an alternative drive Maven repository configuration in the Mysql8.0.16
And then reconfigure the url and user name and password, test the connection, the connection is successful
Then it will display the current database table owned by the right
Right click on the current table --Easy Code -Generate Code
Check the code to be generated templates and sign up, click ok
If there are missing packets you will be prompted to create
After the code generation