springboot中移除tomcat插件的方法

<dependency>

   <groupId>org.springframework.boot</groupId>

   <artifactId>spring-boot-starter-web</artifactId>

   <!-- 从依赖信息里移除 Tomcat配置 -->

   <exclusions>

      <exclusion>

         <groupId>org.springframework.boot</groupId>

         <artifactId>spring-boot-starter-tomcat</artifactId>

      </exclusion>

   </exclusions>

</dependency>