I do not change run configuration unless reinstalling IntelliJ IDEA and I am not sure if I set the run config properly.
Could you pls clarify me about the following issue based on the attached dialog:
1. SHould I use SPring Boot or Application Template of Run config for a Spring Boot app? Or is both of them are ok?
2. Which field should I fill in order to set the run config properly?
Advertisement
Answer
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. But usually, this is created automatically.
See the attached image for the details. Notice the main class field points to the file DemoApplication.