Turn: eclipse install lombok

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. 
write picture description here

    1. Download lombok.jar 
      ( https://projectlombok.org/download.html )
    2. Put lombok.jar in the eclipse installation directory, level with the eclipse.ini file. 
      write picture description here
    3. 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 
      write picture description here
      b. Click the specify location button, select the eclipse installation directory, and select the eclipse layer. 
      write picture description here 
      Click install according to the steps shown in the figure below. 
      write picture description here
      c. After success, the figure below 
      write picture description here
      shows: There are also many more logs in the black box: 
      write picture description here

    4. 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) 
      write picture description here

    5. Restart eclipse, and then clean the project.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325227262&siteId=291194637