Lombok is an annotation processor - it has full access to the generated source tree. While annotation processors typically generate new source files, Lombok modifies existing ones by adding new fields or methods.
There are many annotations provided by Lombok. (See Complete List )
To answer the question: Lombok annotations do not generate code at design time. This only happens when the Java compiler generates an abstract source tree. Therefore, do not expect the code to magically change whenever you add an annotation.
But you need to enable them in your specific IDE so that all dependencies and imports are added correctly. The following are ways to resolve Lombok annotations in your IDE. You can also go to the Maven project and enable them ( Project Lombok Maven repository ).
IntelliJ Idea
1) Enable annotation processing
File β Settings β Build, Execution, Deployment β Compiler β Annotation Processors β (Check the box as shown below)

2) Install / update the Lombok plugin ( see This )
File β Settings β Plugins β Search Lombok plugin β Update or install
Eclipse
Follow these steps in this link .
Keet Sugathadasa
source share