SpringBoot Process finished with exit code 0

SpringBoot 启动出现如下情景,是因为项目中未引用spring-boot-starter-web导致

SpringBoot Process finished with exit code 0

只需在pom文件中引用如下架包即可
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>