21
votes

I am new to IntelliJ Community edition. Can anyone help me with creating spring boot project in intelliJ Community edition. For ultimate edition there is spring-boot initializer but I cannot find anything for community edition. I followed this links but cannot find any solutions

enter link description here

enter link description here

4
why can't you use spring-tool-suit(sts)? - Akshatha Srinivas
There is no bundled support for Spring boot in Community edition: jetbrains.com/idea/features/editions_comparison_matrix.html - y.bedrov

4 Answers

21
votes

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()

3
votes

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.

2
votes

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.
0
votes

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