Because there are @Slf4j annotations in the project, and eclipse needs to install the lombok plugin to compile normally. Due to the blankness of lombok before, I checked several posts and summarized the installation of lombok in eclipse under window in detail.
- Download lombok.jar
( https://projectlombok.org/download.html ) - Put lombok.jar in the eclipse installation directory, level with the eclipse.ini file.
-
Run lombok.jar
in the directory of lombok.jar, run:java -jar lombok.jar
a. After running, the following box will pop up, click OK directly
b. Click the specify location button, select the eclipse installation directory, and select the eclipse layer.
Click install according to the steps shown in the figure below.
c. After success, the figure below
shows: There are also many more logs in the black box: -
If you want to see if the installation is really successful, you can take a look in eclipse.ini, my environment is one more line (-javaagent:D:\Program Files\eclipse\lombok.jar)
- Restart eclipse, and then clean the project.