I managed to solve this problem by using the following steps: Go to File -> Settings -> Plugins -> Spring Boot was not ticked by default
When I checked Spring Boot and pressed OK, it downloaded the relevant plugin. Then, in the Add New Configuration, a Spring Boot template appeared.
Answer from georgeliatsos on Stack OverflowIntellij IDEA Spring Boot configuration - Stack Overflow
Intellij Spring Boot project run configuration - Stack Overflow
java - Spring Boot project in IntelliJ community edition - Stack Overflow
How do I activate a Spring Boot profile when running from IntelliJ? - Stack Overflow
Videos
Please follow the following steps:
Set the maven goal by clicking the "+" in IntelliJ (circled area)

Write
mvn install.
Set the VM Options as:
-Dspring.profiles.active=development
After that it should just run fine just by clicking the green play button.
This should help you get started.

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

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

I added -Dspring.profiles.active=test to VM Options and then re-ran that configuration. It worked perfectly.
This can be set by
- Choosing
Run | Edit Configurations... - Go to the
Configurationtab - Expand the
Environmentsection to revealVM options
If you actually make use of Spring Boot run configurations (currently only supported in the Ultimate Edition) it's easy to pre-configure the profiles in "Active Profiles" setting.

