有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java如何在不安装插件的情况下将lombok jar添加到intellij idea中?

我在用eclipse做一个spring boot项目。我正试图转移到intellij的想法,但我们的项目使用的是lombok jar。由于网络连接的限制,我无法下载并安装lombok插件。我可以将lombok jar与eclipse连接起来。但不知道如何将龙目玻璃罐与intellij idea连接起来。我在网上搜索,没有找到答案。 请帮我拿这个。 提前感谢:)


共 (1) 个答案

  1. # 1 楼答案

    您可以访问Intellij Idea Lombok插件的Github项目页面,网址为: https://github.com/mplushnikov/lombok-intellij-plugin/ 按照指示:

    Manually: Download the latest release and install it manually using

    Preferences > Plugins > Install plugin from disk...

    Restart IDE.

    Required IntelliJ Configuration

    In your project: Click Preferences -> Build, Execution, Deployment -> Compiler, Annotation Processors.

    Click Enable Annotation Processing

    Afterwards you might need to do a complete rebuild of your project via Build -> Rebuild Project.

    • 注:构建工具Gradle/Maven中的Lombok项目依赖项