问题描述 SpringBoot项目启动后退出,最后打印:进程已结束,退出代码为 0 后来结合pom,原来项目中没有Servlet容器。。。 <!--spring-boot-starter-web内嵌tomcat--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>