Yesterday, I accidentally saw a new version of Eclipse, and then click on the next update. After launching eclipse today, the class that used the Lombok plugin annotation in the code has an error, and after using maven–>update, the errors disappear and the compilation is normal.
However, when the Tomcat started debugging the program, it was prompted not to find the Get/set method, by anti-compilation of the class file in Tomcat, found that no Get/set method was generated.
Compiling the program using the MAVEN command separately in the explorer and discovering that it is possible to generate the Get/set method, the problem is identified in the integration of Eclipse and Lombok.
The official recommended way to integrate Lombok in Eclipse is to use the Java-jar lombok.jar command and then select the Eclipse installation path in the pop-up window. The Lombok.jar will then be copied to the Eclipse installation directory and named Lombok.jar, and the following will be appended to the Eclipse.ini file:
-javaagent:lombok.jar
If you search the Eclipse integration Lombok online, you'll find that you'll also need to add the following additional content in Eclipse.ini:
-xbootclasspath/a:lombok.jar
To tell the truth, I do not know that a: what meaning, but has been no problem, so I did not care too much. There was an error at the beginning of the article until the latest version of Eclipse was updated today. I try to take a: get rid of, and finally everything is OK. So the final additions to Eclipse.ini are as follows:
-javaagent:lombok.jar
-xbootclasspath/lombok.jar
After testing, this article does not really solve the problem, the solution is temporarily unknown .....