idea 打包 springboot 项目,tomcat正常启动但访问报404 两个步骤: 1、启动类 没有 继承 SpringBootServletInitializer 类 2、记得将 springboot 自带的 tomcat 插件 打包时 排除掉