10- Lombok in STS
You might have have seen that in model or entity class we have to create Getter and Setters, Constructors using field, Constructors using superclass, etc.
These are basically boiler plate codes but requires time for developer .
Also readibility of source code decreases..
In order to encouter this issue Project Lombok is used.
Project Lombok is a java library tool which is used to minimize/remove the boilerplate code and save the precious time of developers during development by just using some annotations.
In addition to it, it also increases the readability of the source code and saves space.
Basically you can use this library through maven dependency or jar file.
Execution in Java done by annotation @Data
@Data = @Setter + @Getter + @ AllArgsConstructor + ..........
Comments
Post a Comment