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 › 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

java - IntelliJ Run Configuration for Spring Boot apps? - Stack Overflow
I do not change run configuration unless reinstalling IntelliJ IDEA and I am not sure if I set the run config properly. Configuration Dialog Could you pls clarify me about the following issue based... More on stackoverflow.com
🌐 stackoverflow.com
java - intellij run configuration can't find spring boot class - Stack Overflow
I am trying to create a run configuration for a spring boot app, but Intellij can't find the main class of the spring boot app (Usually it is automatically populated). I tried adding the class by More on stackoverflow.com
🌐 stackoverflow.com
java - Spring Boot project in IntelliJ community edition - Stack Overflow
Where you will face some difficulty ... 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 ... More on stackoverflow.com
🌐 stackoverflow.com
How to run a spring boot code for the first time
You may need to open the module settings to make sure the Java SDK and versions are set right. Make sure it is imported as a maven project- IntelliJ should automatically mark src/main/Java, src/test/java, etc as code and resources root but it doesn’t look like it is in your case. You can right click on folders in the project view and choose mark folder as > choose the appropriate option. More on reddit.com
🌐 r/SpringBoot
22
8
August 9, 2022
🌐
JetBrains
jetbrains.com › help › idea › spring-boot.html
Spring Boot | IntelliJ IDEA Documentation
3 weeks ago - In this case, IntelliJ IDEA will be used to both build and run your Spring Boot application. The value of Advanced Settings | Run using Gradle is an IDE-level setting while settings under Build, Execution, Deployment | Build Tools | Gradle can be configured for each project individually.
🌐
JetBrains
jetbrains.com › help › idea › your-first-spring-application.html
Tutorial: Create your first Spring application | IntelliJ IDEA Documentation
March 9, 2026 - IntelliJ IDEA creates a Spring Boot run configuration that you can use to run your new Spring application.
🌐
Bootify
bootify.io › learn › next steps › working with intellij
Working with your Spring Boot application in IntelliJ | Bootify.io
July 5, 2024 - Under Build → Build Tools → Gradle the two settings "Build and run using" as well as "Run tests using" can be changed to IntelliJ. That will make the log output during testing and development more consistent. ... Please also check out this article for the proper setup of Lombok in IntelliJ.
🌐
YouTube
youtube.com › watch
Run Debug Configuration in IntelliJ (and Spring Boot) - YouTube
Run Debug Configuration in IntelliJ (and Spring Boot)Subscribe Kindson The Tech Pro Youtube: https://bit.ly/2PpJd8QJoin my group ICS on Facebook: https://bit...
Published   November 18, 2019
🌐
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 - Open the Spring Boot project in IntelliJ. 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.
Find elsewhere
🌐
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.
🌐
Stack Overflow
stackoverflow.com › questions › 71944398 › intellij-run-configuration-for-spring-boot-apps
java - IntelliJ Run Configuration for Spring Boot apps? - Stack Overflow
I use Spring Boot configuration, and set the class containing the main method as the class that is created automatically by IntelliJ when you create a new Spring Initializr project.
🌐
Vibes News
stagingsvs.com › blog › intellij-spring-boot-run-configuration
IntelliJ: Spring Boot Run Configuration Guide
November 14, 2025 - First, open the Run/Debug Configurations dialog by navigating to Run > Edit Configurations.... Click the + button to add a new configuration. From the dropdown menu, select Spring Boot.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360006603199-Spring-Run-Configurations
Spring Run Configurations – IDEs Support (IntelliJ Platform) | JetBrains
November 14, 2019 - public void actionPerformed(AnActionEvent e) { Project project = e.getProject(); RunManager runManager = RunManager.getInstance(e.getProject()); RunnerAndConfigurationSettings runnerAndConfigurationSettings = runManager.createConfiguration("", new SpringBootApplicationConfigurationType().getDefaultConfigurationFactory()); final SpringBootApplicationRunConfigurationBase applicationConfiguration = (SpringBootApplicationRunConfigurationBase) runnerAndConfigurationSettings.getConfiguration(); applicationConfiguration.setModule(...); applicationConfiguration.setSpringBootMainClass("..."); runManager.addConfiguration(runnerAndConfigurationSettings); } ... 2. did you specify "com.intellij.spring.boot" in <depends> of your plugin.xml?
🌐
GeeksforGeeks
geeksforgeeks.org › java › how-to-run-your-first-spring-boot-application-in-intellij-idea
How to Run Your First Spring Boot Application in IntelliJ IDEA? - GeeksforGeeks
July 23, 2025 - You may refer to this article How to Create and Setup Spring Boot Project in IntelliJ IDEA and create your first Spring Boot Application in IntelliJ IDEA. ... After successfully creating or importing the spring boot project a file name Application.java (Herre DemoApplication) will be created automatically and this is your entry point. You can consider it as the main method of a Spring Boot application. ... To run this application now Right-click on the Application.java > Run "DemoApplication.main()" as shown in the below image.
🌐
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 - Type mvn spring-boot:run from the root project directory to start the application. You should see output similar to the following. [pullquote align=”normal”] Read our article Building an Application with Spring Boot to build a web application ...
🌐
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
intellij-support.jetbrains.com › hc › en-us › community › posts › 360007646760-Run-Debug-Configurations-list-of-templates-doesn-t-have-Spring-Boot
Run/Debug Configurations list of templates doesn't have Spring Boot – IDEs Support (IntelliJ Platform) | JetBrains
I was running my spring boot application with Spring Boot template on Run/Debug Configurations. I haven't changed anything and suddenly my configuration was marked as an "Unknown Configuration" w...
🌐
Baeldung
baeldung.com › home › ide › basic intellij configuration
Basic IntelliJ Configuration | Baeldung
March 11, 2026 - In this tutorial, we'll see how to orchestrate a multi-step flow for a ride-hailing application by integrating Dapr Workflows and Spring Boot: ... Yes, we're now running our Spring Sale. All Courses are 30% off until 31st March, 2026 ... A good IDE is important for developer productivity. IntelliJ is currently one of the leading IDEs and supports many programming languages. In this tutorial, we’ll start with some of the basic configurations in IntelliJ, focusing on the Java programming language.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 20819729634322-automatically-create-run-debug-configurations-after-importing-spring-boot-application-maven
automatically create run/debug configurations after importing spring boot application (maven) – IDEs Support (IntelliJ Platform) | JetBrains
August 18, 2024 - Setting is CHECKED: Languages & Frameworks → Spring → Create run configurations automatically Any other config I need in my IDE? ... Thank you for reporting this! Would you be able to share the Project for the investigation? If the Project cannot be shared, please provide more information on the Spring Boot Applications, for which Run Configurations were not created and overall Project structure and configuration.