解决Springboot2.0 启动Process finish

2018-09-03  本文已影响0人  linjiajiam

一、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>
上一篇 下一篇

猜你喜欢

热点阅读