springboot项目启动后tomcat服务器自动关闭 解决方法

需要在pom.xml中添加

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
posted @ 2020-12-02 20:30  jamers  阅读(824)  评论(0编辑  收藏  举报