美文网首页
springboot项目启动后立即自动关闭,没有报错信息

springboot项目启动后立即自动关闭,没有报错信息

作者: EmmaQin | 来源:发表于2019-08-03 11:49 被阅读0次

1、引入web包

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

2、去掉<scope>provided</scope>

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

相关文章

网友评论

      本文标题:springboot项目启动后立即自动关闭,没有报错信息

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