Lombok is not generating getter and setter

前端 未结 20 1917
走了就别回头了
走了就别回头了 2020-11-29 19:10

I just tried to send a Maven-based project to another computer and HORROR, red markers everywhere!!

However, mvn clean install is building just fine.

20条回答
  •  余生分开走
    2020-11-29 19:16

    When using lombok on a fresh installation of Eclipse or STS, you have to:

    1. Install the lombok jar which you can get at https://projectlombok.org/download. Run the jar (as Administrator if using windows) and specify the path to your Eclipse/STS installation.

    2. Restart your IDE (Eclipse or STS)

    3. Give some time for eclipse to generate the class files for lombok (Might take a up to 4 mins in some cases)

提交回复
热议问题