Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to access Spring Documentation from Intellij IDE?

I want to view Spring Documentation via Intellj's View->Quick Documentation features. To achieve this, I have tried this following by using external documentation 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/

Intellij Support

But it is not working.

Can anyone help, please?

like image 574
mnhmilu Avatar asked Apr 07 '20 08:04

mnhmilu


People also ask

Can I use spring initializr with IntelliJ IDEA community?

Unfortunately using IntelliJ IDEA Community, according to the documentation, there’s no support to create Spring Boot projects using Spring Initializr through the IDE in Community version, only in the Ultimate Edition. So, we have two choices that we can explore: Use Spring Initializr Web

How do I create a project with IntelliJ IDEA?

IntelliJ IDEA will create a project with all the code from the guide ready to run. In case you’d like to start with an empty project and copy-and-paste your way through the guide, create a new Maven or Gradle project in the Project Wizard:

What is Spring MVC in IntelliJ IDEA?

For example, Spring MVC web applications have strict rules about their configuration. Spring support in IntelliJ IDEA can deduce them and create an autodetected application context for you, as well as set up the Web facet.

How do I configure parent context in IntelliJ?

IntelliJ IDEA can configure the parent context automatically. For example, if the IDE detects the Spring Cloud context, it will make it a parent application context for Spring Boot. Spring allows you to map specific contexts or beans to different profiles, for example, test or production.


1 Answers

Quick Documentation

"Quick Documentation" is different from "External Documentation". For "Quick Documentation" you just need to configure your dependencies to include sources.

Do you have a Maven or Gradle project?

For Gradle and IntelliJ you can use the gradle-intellij-plugin in your build.gradle(.kts) file. It has a downloadSources option, which is true by default.

For Maven, there is an option to automatically download sources, documenation, and annotations in the IntelliJ settings under "Maven" > "Importing".

To see whether it's working or to do it manually, go to "Project Structure" > "Project Settings" > "Libraries" in IntelliJ. You can see and manually add or modify the source JARs and documentation URLs for all your libraries.

External Documentation

For external documentation (opening JavaDoc in the browser), you can tell IntelliJ to download the JavaDoc with the idea Gradle plugin like this:

idea {
    module {
        downloadJavadoc = true 
        //or in Gradle Kotlin DSL:
        //isDownloadJavaDoc = true
    }
}

For Maven the option is again in the IntelliJ settings.

like image 147
Dario Seidl Avatar answered Oct 23 '22 16:10

Dario Seidl