Introducing TJX-Cold (because shenzhen was very cold when I had the idea)

For according to the configuration template, quickly generate the controller, the service, serviceimpl code

Why did you develop this plug-in

There are many tools based on database generation code in the market, but my own workflow is to use database generation code tools to generate POJO,mapper,mapper.xml, as for the control layer, business layer code, or my own manual new. I developed this plug-in because I felt that not every table should have a control layer and a business layer.

The installation

1. Download address

Gitee.com/healingtjx/…

Github.com/healingtjx/…

2. Install the IDEA plug-in

Idea – “setup -” Install Plugin from Disk

configuration

Mode selection

  • The default

controller/{fileName}.java

service/{fileName}.java

service/impl/{fileName}.java

  • Mode 1(Controller, Service add Package)

controller/{Package}/{fileName}.java

service/{Package}/{fileName}.java

service/impl/{Package}/{fileName}.java

  • Mode 2(Only Contrller plus Package)

  • Mode 3(Service only, IMPl plus Package)

Template code configuration

Configure your own template code according to your own project (I will sort out the variables of the definition number later)

Poject level for my storage so every project can configure one

use

Follow-up prospects

I think it’s not just the background code that has a lot of repetitive operations, but also the front-end code that can be generated automatically from the background interface. Therefore, I will generate front-end code according to the controller code (based on the background template project of VUE built by myself) in the future.

Finally to achieve effect: the controller using plug-in to generate the background, the service, serviceimpl, front-end XXX. Vue, xxapi. Js request (interface), routing code.

Just a few lines of code (based on Mybatis – Plus) are required to implement the list, add/modify, and remove the code below the 3 IMPL.

The front end only needs to implement changes to the list of field names and validate the relevant code under rules.

Refer to projects and literature

Environment build cloud.tencent.com/developer/a…

Reference project github.com/xiaoxinglai… Github.com/x-hansong/C…

To solve the project level configuration www.zhihu.com/question/37…