Saturday, March 6, 2021

How to use lombok in a Spring Boot

 How to use lombok.Data annotation in a Spring Boot application?

Step-1 : Add dependency in pom.xml

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

Step-2 : add dependency in eclipse.

        download latest version of lombok.jar

        double click on jar

you will see below screen.


Check the checkbox and Click on install/Update. Than you will see next screen below.


Now click quit installer button.

Check in eclipse.

Go to help-> about eclips
You can check if your eclipse installation is lombok-enabled in eclipse's about dialog. The lombok version will be listed at the end of the copyright text:





No comments:

Post a Comment