Adding Lombok dependency

Put the following dependency in a pom.xml file:

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

The provided scope instructs Maven not to include this dependency in the JAR file because we need it at compile time. We do not need it at runtime. Wait for Maven to download the dependency, that is all for now.

Also, we can use the Reimport All Maven Projects provided by IntelliJ IDEA, located in the Maven Projects tab, as shown here:

Get Spring 5.0 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.