Lombok not working with STS

后端 未结 18 1976
我在风中等你
我在风中等你 2020-12-14 06:49

Although I love lombok, it gives too much problems while configuring sometimes, specially in Linux. When I was trying to install it, I was getting the following error:

18条回答
  •  醉话见心
    2020-12-14 07:42

    On Linux, I copied lombook.jar file to STS folder. Then, I added below lines in STS.ini file

    -vmargs
    -Xbootclasspath/a:lombok.jar
    -javaagent:lombok.jar
    

    However it still didn't solve the issue. After starting STS with -clean it did work.

    Go to the folder containing the STS file, and on the console run ./STS -clean.

提交回复
热议问题