Spring boot 启动后自动关闭,log输出
org.springframework.context.annotation.AnnotationConfigApplicationContext - Closing org.springframework.context.annotation.AnnotationConfigApplicationContext
![](https://img.haomeiwen.com/i12632506/5a55dae6d91e8cce.png)
原因 : pom 文件中maven依赖 spring-boot-starter-web 中移除了Tomcat
![](https://img.haomeiwen.com/i12632506/2efe57dd970e07f3.png)
将红框部分删掉后重启后不再关闭。
参考https://blog.csdn.net/qq_30243515/article/details/83714178
网友评论