IDEA `lombok` error resolution record

IDEA lombokerror resolution record

Used in the project lombok, no error was reported when mvn was built, but an error was reported when it was run.
The get and set methods cannot be found.

Baidu learned that if the maven version is inconsistent with the idea lombok version, an error may be reported. will update to the latest version in
the root directory . Still getting an error.pom.xmllombok

Check External Librariesthe files in the directory of the project and find that
there are two versions oflombok

Maven:org.projectlombok:lombok:1.18.10
Maven:org.projectlombok:lombok:1.18.20

I obviously introduced the latest version 1.18.20, so 1.18.10where did the version come from?
Check the file again pom.xml, it turns out that the sub-project pom.xmlintroduced a lower version.

The sub-project removes the reference, and the problem is solved

Reference: Introduction to idea lombok and solutions to red and error reports

Guess you like

Origin blog.csdn.net/kaka_buka/article/details/116164269