Run Spring-boot's main using IDE

前端 未结 9 1970
灰色年华
灰色年华 2020-11-30 01:51

I have a spring-boot application that needs to:

  • Be deployable as a war in a servlet container
  • Be runnable via `mvn spring-boot:run``

I\

9条回答
  •  醉酒成梦
    2020-11-30 02:23

    Follow these steps:

    1. On the top right side of intellij window, click the drop down and select edit configuration and a new window will open.

    2. In this window, on top left side, click "+" button and select sprint boot.

    1. Then add you main class, and other details as shown in screenshot.

    2. Now Run the application.

提交回复
热议问题