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
-
why can't you use spring-tool-suit(sts)?– Akshatha S RSep 23, 2019 at 4:46
-
There is no bundled support for Spring boot in Community edition: jetbrains.com/idea/features/editions_comparison_matrix.html– y.bedrovSep 23, 2019 at 12:30
6 Answers
You can install a plugin called Spring Assistant
:
Now you can use the initializer as:
Personally, however, I use Spring initializer at start.spring.io
EDIT: Adding run configuration
Select Edit Configuration from the Run menu
Now in the dialog box, lick on the
+
button and select Application
.
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(...)
.
-
See my answer above if anybody is not able to find
Sprint Assistant
while searching in Plugins in IntelliJ IDEA Community. Jul 2, 2021 at 15:57
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.
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.
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
.
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.
-
2"Plugin 'Spring Assistant' (version 0.12.0) was explicitly marked as incompatible with the current version of the IDE"– 蒋艾伦Jul 22, 2021 at 11:33
-
  Just go to the below mentioned:
Fill the information regarding Project(Maven, Java, spring-version(Select version only have digits(for eg:2.6.2))). Don't select "snapshot" version.
Fill project Metadata information and click on Generate file. It will create jar file. Unzip it and open your IntelliJ and select "Open->select this Unzip folder and select "pom.xml" file inside this package and open as project.
You can follow these steps.