是否可以从 Intellij IDE 访问 Spring 文档?
Is it possible to access Spring Documentation from Intellij IDE?
我想通过 Intellj 的 View->Quick Documentation
功能查看 Spring 文档。
为此,我使用外部文档 link:
尝试了以下操作
Ok, I've added the url of the Spring Framework docs. as instructed, but yet, when I do ctrl+Q on a Spring Framework item, it doesn't show any docs. on the pop-up above...
Here is the url I used: https://docs.spring.io/spring-framework/docs/current/javadoc-api/
但它不起作用。
有人能帮忙吗?
快速文档
“快速文档”不同于“外部文档”。对于“快速文档”,您只需配置依赖项以包含源代码。
你有 Maven 或 Gradle 项目吗?
对于 Gradle 和 IntelliJ,您可以在 build.gradle(.kts)
文件中使用 gradle-intellij-plugin。它有一个 downloadSources
选项,默认情况下为真。
对于 Maven,在“Maven”>“导入”下的 IntelliJ 设置中有一个自动下载源代码、文档和注释的选项。
要查看它是否有效或手动执行,请转到 IntelliJ 中的“项目结构”>“项目设置”>“库”。您可以查看并手动添加或修改所有库的源 JAR 和文档 URL。
外部文档
对于外部文档(在浏览器中打开 JavaDoc),您可以告诉 IntelliJ 使用 idea Gradle 插件下载 JavaDoc,如下所示:
idea {
module {
downloadJavadoc = true
//or in Gradle Kotlin DSL:
//isDownloadJavaDoc = true
}
}
对于 Maven,该选项再次出现在 IntelliJ 设置中。
我想通过 Intellj 的 View->Quick Documentation
功能查看 Spring 文档。
为此,我使用外部文档 link:
Ok, I've added the url of the Spring Framework docs. as instructed, but yet, when I do ctrl+Q on a Spring Framework item, it doesn't show any docs. on the pop-up above...
Here is the url I used: https://docs.spring.io/spring-framework/docs/current/javadoc-api/
但它不起作用。
有人能帮忙吗?
快速文档
“快速文档”不同于“外部文档”。对于“快速文档”,您只需配置依赖项以包含源代码。
你有 Maven 或 Gradle 项目吗?
对于 Gradle 和 IntelliJ,您可以在 build.gradle(.kts)
文件中使用 gradle-intellij-plugin。它有一个 downloadSources
选项,默认情况下为真。
对于 Maven,在“Maven”>“导入”下的 IntelliJ 设置中有一个自动下载源代码、文档和注释的选项。
要查看它是否有效或手动执行,请转到 IntelliJ 中的“项目结构”>“项目设置”>“库”。您可以查看并手动添加或修改所有库的源 JAR 和文档 URL。
外部文档
对于外部文档(在浏览器中打开 JavaDoc),您可以告诉 IntelliJ 使用 idea Gradle 插件下载 JavaDoc,如下所示:
idea {
module {
downloadJavadoc = true
//or in Gradle Kotlin DSL:
//isDownloadJavaDoc = true
}
}
对于 Maven,该选项再次出现在 IntelliJ 设置中。