带有Spring Tool Suite 4的Lombok [英] Lombok with Spring Tool Suite 4

查看:419
本文介绍了带有Spring Tool Suite 4的Lombok的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在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 the Contents directory within the .app file and find the STS.ini file, it could be SpringToolSuite4.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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆