idea springboot maven项目启动:Process finished with exit code 0 - Go语言中文社区

idea springboot maven项目启动:Process finished with exit code 0


1,如果新建的项目是jar类型的,可以直接使用springboot的启动类启动

2,如果是war类型的项目,使用springboot的启动类启动是会启动完后停止项目的,出现:Process finished with exit code 0

3,后面百度问题,找了挺多都说缺少下面的web,但是都是存在的,后面也考虑是不是maven jar加载不完全,然后清除jar,重新加载结果还是同样如此

<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-web</artifactId>
</dependency>

4,不清楚还是需要引入其他jar还是配置,暂时没有找到解决方案,但是如果是急着运行项目可以换一种运行项目的方式,用maven来运行项目,步骤如下:

 

5,按照如上方式就可以正常运行项目了,但是需要添加如下到pom文件中

<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-tomcat</artifactId>
	<scope>provided</scope>
</dependency>

 

版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/baidu_38226233/article/details/87875611
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2020-06-28 03:05:54
  • 阅读 ( 1224 )
  • 分类:

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢