Spring Boot project in IntelliJ community edition

We Are Going To Discuss About Spring Boot project in IntelliJ community edition. So lets Start this Java Article.

Spring Boot project in IntelliJ community edition

  1. Spring Boot project in IntelliJ community edition

    If you have done your spring project with SPRING IO
    Then You can import it as maven project and follow this steps to import spring project
    Open IntelliJ IDEA
    You can see Welcome screen, click Import Project.
    The Select File
    Navigate to your Maven project and select
    Click OK.

  2. Spring Boot project in IntelliJ community edition

    If you have done your spring project with SPRING IO
    Then You can import it as maven project and follow this steps to import spring project
    Open IntelliJ IDEA
    You can see Welcome screen, click Import Project.
    The Select File
    Navigate to your Maven project and select
    Click OK.

Solution 1

You can install a plugin called Spring Assistant:
Spring Assistant
Now you can use the initializer as:
Using initializer
Personally, however, I use Spring initializer at start.spring.io

EDIT: Adding run configuration

Select Edit Configuration from the Run menu
Run menu
Now in the dialog box, lick on the + button and select Application.
Run Configuration dialog
Now you just need to provide the name of the main class. You could click on the browse button(...) to get a list of files having main(...).
Select class with main()

Original Author Prashant Of This Content

Solution 2

If you have done your spring project with SPRING IO

Then You can import it as maven project and follow this steps to import spring project

  1. Open IntelliJ IDEA

  2. You can see Welcome screen, click Import Project.
    The Select File

  3. Navigate to your Maven project and select

  4. Click OK.

Original Author Dulaj Kulathunga Of This Content

Solution 3

Pretty simple, as both link you attached say you created your project with Spring Initializr, and if it is a maven project, then follow these steps mentioned below:

  • click on File option
  • click Open option
  • navigate to your project and choose pom.xml file [it not a maven project, choose your configuration.xml file, if something else, just select the project folder]
  • press Ok. And you are done
  • now, open idea terminal and run mvn clean install(I assume you have installed maven) or, just select project->right click->choose maven-> click on Reimport maven option. Now run mvn clean build All are set now.

Original Author user404 Of This Content

Solution 4

Extending @Prashant’s answer

If you are not able to find Spring Assistant plugin within IntelliJ Community Edition, Go to Plugin’s website and then click on GET button, Choose Compatibility with IntelliJ IDEA Community and then click Download.

Spring Assistant Plugin Website

The rest of the procedure remains the same as described by @Prashant.

Also if you want to change your Port, then select Modify Options and select Add VM Options, and paste

-Dserver.port=8090

in that VM Options textbox and then run the application.

Modifying Configuration for port

Original Author Hamza Khanzada Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

Siddharth

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment