Assuming you use IntelliJ: You have to install Lombok Plugin in order to make it work:
File > Settings > Plugins
Lombok Plugin
Aside from the dependency in the provided
scope you have to enable the annotation processing (if you are using IntelliJ Idea) and install the Lombok Plugin .
<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>${lombok.version}</version> <scope>provided</scope> </dependency>
Annotation processing: Navigate to File
-> Settings
-> Build, Execution, Deployment
-> Compiler
-> Annotation Processors
and check Enable annotation processing
.
Lombok Plugin: Navigate to File
-> Settings
-> Plugins
and make sure the Lombok plugin is installed.
Restart IntelliJ Idea - The most likely missed part:)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.