IntelliJ IDEA
Just install the lombok plugin from plugin repository.
Eclipse (or STS)
- Dwonload the lombok jar file from official site or from our chat group. And can also get it from local maven repository
~/.m2/repository/org/projectlombok/lombok/
- java -jar
, select the eclipse installation location in the popup window. - Make sure the follow line is in the
eclipse.ini
orSTS.ini
-javaagent:lombok.jar -Xbootclasspath/a:lombok.jar
ps: /a : append class path
- elipse is buggy, maybe need exit and start (Restart doesn’t take effect) and
Maven -> Update Project
.
近期评论