Why does Spring Boot web app close immediately after starting?

后端 未结 10 2323
南笙
南笙 2021-02-18 15:57

Using STS, if I import the \"Rest Service\" Getting Started project using the latest Spring Boot and choose \"Run As Spring Boot App\", it starts up, t

10条回答
  •  别那么骄傲
    2021-02-18 16:44

    In addition, you should check that you have at least one rest controller in your app (@RestController) and make sure you compile with spring-boot-starter-tomcat

    providedRuntime ('org.springframework.boot:spring-boot-starter-tomcat')
    

提交回复
热议问题