Lombok automates getter,setter, equals and logging in java project.
Add the following lombok dependency to pom.xml
<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> </dependency>
You might face compilation issues or some red color syntax issues in eclipse where classes are not able recognize getters or setters eclipse or STS.
Solution:
1. Install via eclipse :
- Eclipse => Help => Install new Software
- In the below project window give
2. Install via java
Step1: navigate to lombok.jar file in maven repository
C:\Users\{user_name}\.m2\repository\org\projectlombok\lombok\1.18.22
Run “java -jar lombok.1.18.22”
Click on Install and Update and restart the eclipse or STS