For me "Build -> Rebuild project" fix this kind of issues.
Go to build > Rebuild Project that will fix your problem
by the way you can use the annotation
@Getter
and@Setter
on the class filed and it will generate for all the members in the class
I've had this problem when I've updated IDEA to a newer version, but the Lombok plugin wasn't automatically updated, and the existing version of the plugin was incompatible with the new version of IDEA. I didn't notice anything obvious to suggest that the plugin was the issue with annotation processing failures. Pulling up the "Plugins" settings ( IntelliJ IDEA -> Preferences... -> Plugins
on macOS) made it obvious that the plugin was no longer supported and needed to be updated. Updating the plugin and restarting immediately fixed the issue.
This probably doesn't apply in your case where some of the Lombok annotations are being processed, but will hopefully be helpful for others who have this issue.
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.