Wednesday 29 August 2018

Lombok Plugin

Lombok Plugin implementation (To Avoid Setters and Getters in Pojo's and Entitties)

Step 1: Add lombok latest dependency in pom.xml.

<dependency>
         <groupId>org.projectlombok</groupId>
         <artifactId>lombok</artifactId>
          <version>1.18.2</version> 
         <scope>provided</scope> 
</dependency>

Step 2: Add or copy lombok jar in sts or eclipse(Where the location of Eclipse or STS installation).

Step 3: Open command prompt and move to eclipse location and type below command.
java -jar lombok-1.18.2.jar

Step 4: After above step it will open a small UI like below 

Step 5: Click on install and specify the installation location of sts or eclipse.

Step 6: Remove all setters and getters in Entity and Pojo's and add @Data annotation in that.

Step 7: Update the Maven update once.



No comments:

Post a Comment

SpringBoot

SpringBoot SpringBoot Application :  Pros & Cons :  SpringBoot Application creation using spring.io :  SpringBoot Application Annotation...