-
下载lombok 插件: lombok.jar https://projectlombok.org/download
-
将lombok.jar 拷贝到/Applications/SpringToolSuite4.app/Contents/Eclipse的安装目录下
-
打开SpringToolSuite4.ini 文件,加入以下内容
-javaagent:/Applications/SpringToolSuite4.app/Contents/Eclipse/lombok.jar -Xbootclasspath/a:lombok.jar -vmargs -javaagent:lombok.jar
-
重启