1

I am using @Data annotation on my entity class.

 @Data public class Test {
    private String name;
    private String lName;

I am using the latest lombok dependency

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

The class file after maven compile/package look like this

 package ******.models;

        public class Test {
            private String name;
            private String lName;

            public Test() {
            }

Any idea on this error?Using IntelliJ IDEA as my IDE where lombok plugin is active

Anoop M Nair
  • 1,057
  • 1
  • 13
  • 31
  • What JDK do you use? Please check https://stackoverflow.com/questions/42257379/how-to-configure-lombok-with-maven-compiler-plugin – Andrey Feb 04 '20 at 07:07

1 Answers1

1

Most likely your annotation processing in IntelliJ is off. You can turn it on by referring to the following image

enter image description here

Yogesh Badke
  • 4,249
  • 2
  • 15
  • 23