带有Spring Tool Suite 4的Lombok [英] Lombok with Spring Tool Suite 4
问题描述
我最近在macOS High Sierra中安装了新的Spring Tool Suite 4,但是当我尝试运行Lombok的安装时,找不到我的STS安装,
I've recently installed the new Spring Tool Suite 4 in macOS High Sierra but when I tried to run Lombok's installation it wouldn't find my STS installation,
我按照以下步骤进行了手动安装(将-javaagent添加到ini文件中),但是没有运气:
I followed this steps for manual installation (adding -javaagent to the ini file) but with no luck: https://www.edvpfau.de/sts-spring-tool-suite-4-mit-lombok/.
有什么主意吗?
推荐答案
几天前,我确实在Mac和Windows的Spring Tool Suite 4
中安装了Lombok
.
没问题.
I did install Lombok
in Spring Tool Suite 4
just some days ago for Mac and Windows.
And none problems.
一个:
执行java -jar lombok.jar
- 注意:通常或默认情况下,找不到安装程序,这是我的常见经验.
- Note: normally or by default, it does not find the installer, it is the common scenario in my experience.
两个:
按Specify Location
按钮.
- 注意:对于
Mac
,请转到.app
文件中的Contents
目录并找到STS.ini
文件,也可能是SpringToolSuite4.ini
.
- Note: for
Mac
, go to theContents
directory within the.app
file and find theSTS.ini
file, it could beSpringToolSuite4.ini
too.
结论:因此,对于任何操作系统,目标都是找到扩展名为.ini
的 unique 文件
Conclusion: therefore for any OS, the goal is find the unique file with the .ini
extension
通常在关闭IDE的情况下执行此操作.
Normally I do this with the IDE closed.
这篇关于带有Spring Tool Suite 4的Lombok的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!