Intellij-如何查看属于Maven依赖性的元素(注释,方法,班级等)的完整Javadoc?

发布于 2025-02-01 10:48:40 字数 73 浏览 4 评论 0原文

Intellij仅显示一个非常简短的描述,而不显示Maven依赖项中包含的元素的完整Javadoc,我如何看到完整的Javadoc?

IntelliJ only shows a very brief description and not the full javadoc of elements included in maven dependencies, how can I see the full javadoc?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鹤舞 2025-02-08 10:48:40

您需要强迫Intellij下载与Maven依赖关系相关的文档,因为默认情况下不启用此文档。为此,请按照接下来的步骤:

  1. 打开Maven工具栏
  2. 打开工具栏中的设置
  3. maven设置 - > Maven->导入
  4. 检查文档复选框
  5. 单击OK,

这将确保为将添加到该项目的所有模块自动下载文档。

如果您已经在执行此操作之前已经打开/创建了Maven模块,请在下一个模块上解决此问题。对于当前模块:

  1. 右键单击项目Explorer Maven的模块
  2. - >下载文档

请注意,这仅适用于当前项目。我不确定是否有一种在所有Intellij项目中应用全球应用的方法。

You need to force IntelliJ to download the documentation associated with the maven dependencies as this is not enabled by default. To do so, follow the next steps:

  1. Open the maven toolbar
  2. Open the settings in the toolbar
    enter image description here
  3. Maven Settings -> maven -> Importing
  4. Check the Documentation checkbox
    enter image description here
  5. Click OK

This will ensure the documentation is automatically downloaded for all modules that will be added to this project.

If you have already opened/created a maven module before doing this, then do the above to solve this issue for the next modules. For the current module:

  1. Right click on the module in the Project Explorer
  2. Maven -> Download Documentation
    enter image description here

Please note that this works only for the current project. I'm not sure if there's a way to apply this globally across all IntelliJ projects.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文