How to install Lombok in STS tool? - Beginners

Use of Lombok in spring boot:

Lombok is a Java library tool that replaces boilerplate code with easy-to-use annotations.

Ex: No need to add getter and setter methods for each variables which are declared in model class either you can @Getter and @Setter annotations. 

1) Click to download Lombok

2) Double click on the downloaded exe file.

3) Click "Specify location" and point your STS exe 



4) Add Lombok dependency to your POM.xml file

<dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <optional>true</optional>
</dependency>

5) You can use Getter and Setter annotations in your model class




Context page: Click here
Home page: Click here

Thanks, I hope you enjoyed this session !!!.
-Somasundar Kanakaraj