项目Process finished with exit code 0"/>
springboot项目Process finished with exit code 0
项目场景:
快速创建一个web服务
新建springboot项目-->配置maven-->启动
问题描述
服务运行然后结束
Process finished with exit code 0
原因分析:
没有引入web依赖
项目没有引入web依赖,缺乏web项目启动容器
解决方案:
引入spring-boot-starter-web依赖
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency>
更多推荐
springboot项目Process finished with exit code 0
发布评论