guest :
I am using Lombok’s @Data
annotation to create the basic functionality of my POJOs. When I try to use these generated methods, IntelliJ highlights these as errors (Cannot resolve method ‘getFoo()’
) and seems to be unable to find them. They do however exist, as I am able to run code using these methods without any trouble.
I made sure to enable annotation processing, so that shouldn’t cause any problems.
How can I get IntelliJ to find the methods and stop wrongly marking them as errors?
Alpar :
You will also need the lombok plugin.
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=446919&siteId=1