美文网首页
解决Springboot2.0 启动Process finish

解决Springboot2.0 启动Process finish

作者: linjiajiam | 来源:发表于2018-09-03 16:09 被阅读0次

一、springboot2.0启动运行的时候,没反应。报错如下:

Process finished with exit code 0
image.png

造成这个有几个原因,
1、缺少spring-boot-starter-web,不能被识别为web项目

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

2、缺少tomcat配置,如果没有以下配置,在pom中加上

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

相关文章

网友评论

      本文标题:解决Springboot2.0 启动Process finish

      本文链接:https://www.haomeiwen.com/subject/agfiwftx.html