springboot内置了4个服务器,分别是:jetty、netty、tomcat、underrow。springboot默认使用tomcat服务器启动。是因为在pom.xml中引入了spring-boot-stater-web坐标,已经依赖tomcat的坐标,所以springboot使用的是tomcat服务器。(其实就是条件原理,通过判断是否导入某个坐标,然后创建bean)所以,如果我们在启动的时候不想使用tomcat服务器,操作如下:1.排除spring-boot-stater-web中的坐标tomcat的依赖2.在pom.xml下添加其他web服务器的坐标即可3.启动项目如下:1.排除tomcat的依赖
