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

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/baidu_38226233/article/details/87875611

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 jar

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

猜你喜欢

转载自blog.csdn.net/baidu_38226233/article/details/87875611