Please follow the following steps:

  1. Set the maven goal by clicking the "+" in IntelliJ (circled area)

  2. Write mvn install.

  3. Set the VM Options as: -Dspring.profiles.active=development

After that it should just run fine just by clicking the green play button.

Answer from Ali on Stack Overflow
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ idea โ€บ spring-boot.html
Spring Boot | IntelliJ IDEA Documentation
3 weeks ago - You can select the necessary configuration, including the build tool, language, version of the Spring Boot framework, and any dependencies for your project. IntelliJ IDEA provides the Spring Initializr project wizard that integrates with the Spring Initializr API to generate and import your project directly from the IDE.
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ idea โ€บ run-debug-configuration-spring-boot.html
Spring Boot run configuration | IntelliJ IDEA Documentation
3 weeks ago - The Spring Boot run configuration defines how to run your Spring Boot application in IntelliJ IDEA. The IDE creates a Spring Boot run configuration when you run the application from the main class file.
Discussions

Intellij Spring Boot project run configuration - Stack Overflow
I run my Spring Boot project from the command line using mvn install and then mvn spring-boot:run -Dspring.profiles.active="development". This works fine but is not very convenient. I would like to... More on stackoverflow.com
๐ŸŒ stackoverflow.com
Intellij IDEA Spring Boot configuration - Stack Overflow
I am trying to import a Spring Boot project but when I am trying to Add New Configuration, it does not show a Spring Boot template. Shall I do a configuration to the Intellij to enable Spring Boot More on stackoverflow.com
๐ŸŒ stackoverflow.com
java - Spring Boot project in IntelliJ community edition - Stack Overflow
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 More on stackoverflow.com
๐ŸŒ stackoverflow.com
java - How to configure Spring Boot Run Configuratipon in IntelliJ - Stack Overflow
This may be version specific, we are on Spring Boot 2.0.4 . I've added examples 2019-08-08T17:08:29.597Z+00:00 ... Find the answer to your question by asking. Ask question ... See similar questions with these tags. ... 3 How to add configuration type (SpringBootApplicationConfiguration) to Intellij ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ idea โ€บ spring-projects.html
Add Spring support to existing project | IntelliJ IDEA Documentation
October 11, 2024 - IntelliJ IDEA can configure the parent context automatically. For example, if the IDE detects the Spring Cloud context, it will make it a parent application context for Spring Boot.
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ idea โ€บ your-first-spring-application.html
Tutorial: Create your first Spring application | IntelliJ IDEA Documentation
March 9, 2026 - From the Java list, select the latest version. Leave the default values in other fields. Click Next to continue. On the next screen, select the Spring Web dependency under the Web node. This dependency is required for any web application that uses Spring MVC. Click Create. IntelliJ IDEA will generate and set up the project. Besides the New Project wizard, you can manage Spring Starters later, in existing Spring Boot projects: with your pom.xml or build.gradle file open in the editor, click the Add Startersโ€ฆ
๐ŸŒ
Medium
guneetgstar.medium.com โ€บ how-to-run-spring-boot-applications-on-intellij-idea-for-free-381a2661d409
How to run Spring Boot Applications on IntelliJ IDEA For Free? | by Guneet Singh | Medium
August 13, 2023 - IntelliJ will automatically identify the pom.xml or build.gradle file in your project and start resolving the dependencies. ... 3. From the configurations dialog box, select Add new.. then select Application. A new Java Application configuration ...
๐ŸŒ
Bootify
bootify.io โ€บ learn โ€บ next steps โ€บ working with intellij
Working with your Spring Boot application in IntelliJ | Bootify.io
July 5, 2024 - We can add this parameter under Build, Execution, Deployment โ†’ Compiler โ†’ Java Compiler in the field Additional command line parameters. Warning about missing -parameters flag, replaced with an exception in future Spring versions ยท In the general settings under File โ†’ Settings there ...
Find elsewhere
๐ŸŒ
JetBrains
jetbrains.com โ€บ guide โ€บ java โ€บ tutorials โ€บ your-first-spring-application โ€บ creating-spring-boot-application
Creating your Spring Boot Project - IntelliJ IDEA Guide
February 17, 2023 - This tutorial is based off Building an Application with Spring Boot. If you're in an IntelliJ IDEA project already, select File | Project. Alternatively click New Project on the Welcome screen.
๐ŸŒ
Codefinity
codefinity.com โ€บ blog โ€บ How-to-use-Spring-with-the-IntelliJ-Community-Edition
How to use Spring with the IntelliJ Community Edition
Learn how to set up Spring in IntelliJ IDEA Community Edition: create a Maven project, add Spring dependencies in pom.xml, run the application, and configure the database using the Database Navigator plugin. Perfect for beginners and users of the free version of IntelliJ.
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ idea โ€บ spring-settings.html
Spring settings | IntelliJ IDEA Documentation
April 17, 2025 - Specify whether you want IntelliJ IDEA to automatically create a Spring Boot run configuration when you import a Spring Boot project.
๐ŸŒ
Java Development Journal
javadevjournal.com โ€บ home โ€บ spring boot โ€บ building a spring boot application using intellij idea
Building a Spring Boot application using IntelliJ IDEA | Java Development Journal
February 3, 2020 - We added spring-boot-starter-parent as the parent of our Spring Boot project. This parent provides several features in the Spring Boot application ยท Configuration โ€“ Java Version and Other Properties.
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ idea โ€บ spring-support.html
Spring | IntelliJ IDEA Documentation
Press Ctrl+Alt+S to open settings and then select Plugins. Open the Installed tab, search for Spring and make sure that the checkboxes next to all relevant plugins are selected. If you are new to Spring support in IntelliJ IDEA, start with Tutorial: ...
๐ŸŒ
Medium
medium.com โ€บ @AlexanderObregon โ€บ intellij-idea-and-spring-boot-integration-a-complete-guide-aa90ab6e1a83
Integrating IntelliJ IDEA with Spring Boot | Medium
April 25, 2024 - Learn how to integrate IntelliJ IDEA with Spring Boot to create, run, and debug a production-ready application with ease. Step-by-step guide.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ how-to-create-a-spring-boot-project-with-intellij-idea
How to Create a Spring Boot Project with IntelliJ IDEA? - GeeksforGeeks
March 3, 2025 - Locate the main application class (usually named DemoApplication.java or similar). Right-click on the class and select Run. IntelliJ IDEA will start the Spring Boot application, and you will see the logs in the Run window.
๐ŸŒ
Frankel
blog.frankel.ch โ€บ spring-boot-integration-intellij-idea
Spring Boot integration in IntelliJ IDEA
August 5, 2018 - However, the dedicated Spring Boot configuration allows specific options: ... To create such a configuration, go to Run Edit Configurationsโ€ฆโ€‹. Then, on the right top corner, click on the + button.
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ idea โ€บ spring-support-tutorial.html
Tutorial: Explore Spring support features | IntelliJ IDEA Documentation
June 6, 2025 - This tutorial guides you through steps that cover the following: Add dependencies for JPA and H2 that enable your Spring application to store and retrieve relational data ... The Spring Data JPA module provides support for data access using ...