自己手动配置spring boot环境,启动不报错,但直接退出了
是因为spring boot和tomcat版本不兼容
查看spring boot与tomcat版本:

比如查看spring boot2.5.2
https://search.maven/artifact/org.springframework.boot/spring-boot-starter-tomcat/2.5.2/jar

更多推荐

查看spring boot和tomcat的对应版本