简体   繁体   中英

IntelliJ Run Configuration for Spring Boot apps?

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

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.

IntelliJ Spring Boot 调试配置

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM