I arrived at the studio late today. While eating breakfast in front of the computer, I saw the suggestion IDEA and thought that I had not been promoted for a long time. Just wait. Just upgrade.

After the upgrade, I suddenly found many errors and the original application could not be started. A closer look at the misinformation is that none of Lombok’s annotations seem to be working.

For example, a class using @slf4j will get an error like this:

Java: can't find the symbolic symbols: variable log location: class com. Didispace. UserServiceCopy the code

IDEA also indicates that the compiler currently in use does not support Lombok

java: You aren't using a compiler supported by lombok, so lombok will not work and has been disabled. Your processor is: $Proxy26 Lombok Supports: Sun/Apple Javac 1.6, ECJCopy the code

Lombok was disabled due to the IDEA version, but this was later fixed. So, we just need to update the Lombok version to use 1.18.14 and later:

<dependency>
 <groupId>org.projectlombok</groupId>
 <artifactId>lombok</artifactId>
 <version>1.18.14</version>
 <scope>provided</scope>
</dependency>
Copy the code

If you are a Spring Boot user, you will not write the version number because Spring Boot includes lombok’s version since 2.x. Some older versions of Spring Boot are more prone to this problem. For example, the DD project is using 2.1.3, where lombok version 1.18.6 is introduced by default.

This problem occurred after the IDEA upgrade because of the low version of Lombok. Manual maintenance to 1.18.14 is resolved later.


If the above solutions don’t solve your problem, here are a few that might help:

  1. Whether the Lombok plug-in is installed and enabled

  1. Annotation ProcessorsIn theEnable annotation processingCheck whether the

  1. Add parameter configuration in Compiler:-Djps.track.ap.dependencies=false

Welcome to pay attention to my public account: program ape DD, share the outside can not see the dry goods and thinking!