Reputation: 1092
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
Upvotes: 58
Views: 149291
Reputation: 34175
IntelliJ IDEA CE and Spring Boot
You can create Application configuration
SPRING_PROFILES_ACTIVE
keyUpvotes: 0
Reputation: 2028
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:
Upvotes: 9
Reputation: 3726
As everyone else mentioned, use https://start.spring.io to start your Spring Boot project. Download and open in IntelliJ Community Edition.
Where you will face some difficulty is in running the project; - Ultimate Edition has a Spring Boot plugin that is missing in Community Edition.
You may get errors especially if your main folder of your project is one level higher than the root of your IntelliJ project.
For this, use the Maven run option.
Edit Configuration
and Click the +
to create a new Maven configuration
Upvotes: 7
Reputation: 1111
Apart from the spring initialiser, in my experience no where else do you need an ultimate edition to work with spring boot, you can use Spring Intialiser
But there is a plugin as rightly mentioned by other Spring assistant which you can download from the plugin section which you can access from setting inside intellJ Idea.
For configuration instead of actually going in the edit configuration option of intellJ Idea you can just run the application and that would automatically have your configuration loaded and there onwards you can always use it.
Upvotes: 0
Reputation: 1919
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.
Upvotes: 1
Reputation: 335
You can follow these steps.
Fill in appropriate details.
Note: In place of <no module>
add directory / module in which the entry class is present.
Save the configuration and click on Run / Debug symbol shown in first screenshot.
Upvotes: 6
Reputation: 1529
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.
Upvotes: 1
Reputation: 5383
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(...)
.
Upvotes: 33
Reputation: 1250
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.
Upvotes: 7