Springboot 项目一运行就自动关闭 xyy123 2023-10-05 197 阅读1分钟 发生情况 准备写个demo测试类,结果一开启动类就自动结束了 解决方法 Web的依赖没有导入 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> 导入后成功运行~