Maven project using lombok gadgets

lombok common comment

@Data is equivalent to adding a getter, setter methods
@AllArgsConstructor: automatic generation of all-argument constructor.
@NoArgsConstructor: no parameter automatically generated constructor.
Here Insert Picture Description

Using procedure
1, pom added dependent

 <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <version>1.16.16</version>
 </dependency>

2, enter the full path to the file system will automatically pop up under Lombok.jar pepper popups
Here Insert Picture Description
Here Insert Picture Description
third step is over, another will pop up the interface in accordance with its three-step tips:
Related jar package 1. The project added lombok (automatically downloaded without manual operation)
and then open ide ide 2. after the first exit (restart Eclipse)
3.Clear item (below, may be done enough maven-update program)
Here Insert Picture Description
Here Insert Picture Description
other users method: not test should be no problem
Here Insert Picture Description
End according uppermost steps , below which there are automatic. And above users feel about the same way
Here Insert Picture Description

Published 81 original articles · won praise 5 · views 20000 +

Guess you like

Origin blog.csdn.net/qq_36205206/article/details/103876271