用IDEA搭建spring boot时 项目启动即退出问题!

在使用 SpringBoot 的时候,创建好项目后,发现 SpringBoot 无法启动(启动后立即 shutdown 了)

Process finished with exit code 0,如图

解决方案:

解决方案很简单

只需要把spring-boot-starter-tomcat这个包去掉就可以了。springboot有内置的tomcat

猜你喜欢

转载自www.cnblogs.com/fanqie-006/p/9717864.html