Hello, I’m Dabin

As the saying goes: to do a good job, you must sharpen your tools. Today, I would like to introduce some IDEA plug-ins that I often use, which are very powerful and help you develop.

Plug-in installation

Take IDEA as an example, go to Settings >Plugins >Maketplace, enter the name of the plug-in to be installed, and click Install to download it. After the download is successful, restart IDEA for the plug-in to take effect.

Free Mybatis Plugin

With this plug-in, you can easily jump between Mapper interface files and XML files, greatly improving the experience and development efficiency, recommend!

Translation

Are you still struggling to remember words? The Translation plugin solves this problem. We no longer need to open the browser to translate words, just need to right click translate, one click, very convenient.

POJO to Json

When writing interface documentation, you often need to convert POJOs to Json, which is very inefficient to copy and paste one by one. POJO can be converted to Json with one click.

GsonFormat

During the development process, when I interfaced with colleagues in other departments, sometimes they returned JSON objects, and I needed to use an object to receive them, so as to facilitate the subsequent processing. Manually enter the attributes yourself, right? Using the GsonFormat plugin, you can convert Json into the appropriate Bean object with one click!

Alibaba Java Coding Guidelines

In order to make the code more standardized, Alibaba developed an automated code specification detection plug-in Alibaba Java Coding Guidelines. The plugin scans the code, gives wavy lines where it doesn’t conform to code specifications, alerts you when you hover over it, and can quickly fix some problems.

Conforms to specific rules by going to Settings -> Editor -> Conforms.

Lombok

In development, it is often necessary to write Java beans and add getter/setter methods, constructors, equals methods, etc. When there are many properties, a large number of getter/setter methods will appear, which can be very tedious. Lombok can simplify Java code in the form of simple annotations to improve developer productivity. It automatically generates constructors, getters/setters, equals, hashCode, and toString methods for properties via annotations at compile time.

In the following example, add @data to provide getters and setters for all properties of the class without having to implement them yourself. Add the @toString annotation to automatically generate the ToString () method.

@Data
@ToString
public class Announcement {
    private Integer id;
    private String title;
    private String body;
    private Integer top;
    private Date time;
}
Copy the code

JRebel

Hot add-ons. Cool. Paid add-ons. Through this plug-in we modify the code, configuration files, etc., do not need to restart the server, just need to recompile the project can deploy the modified code to the server, greatly improve the development efficiency.

SequenceDiagram

When looking at the code, some of the code has a lot of call level depth, which makes it confusing to look at yourself. In this case, it is tedious to draw the sequence diagram by yourself, which is a waste of time. The SequenceDiagram helped us solve this problem. This plugin can automatically generate execution sequence diagrams based on method invocation relationships, very convenient!

Finally, I recommend a Github repository, which contains hundreds of classic computer books. You can star it and search it directly next time you find a book. The repository is constantly updated

Making the warehouse:

Github.com/Tyson0314/j…

If Github is not available, access the Gitee repository.

Gitee warehouse:

Gitee.com/tysondai/ja…

Code word is not easy, if you feel that there is help, you can point to encourage!