springboot 切换内置web服务器 SpringBoot的web环境中默认使用tomcat作为内置服务器,其实SpringBoot提供了4种内置服务器,可以很方便的进行切换。 pom文件中的排除依赖效果 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web