spring-boot-starter-web, Tomcat'i spring-boot-starter-tomcat ile getiriyor. Eğer biz Tomcat’i hariç bırakmak istersek aşağıdaki gibi <exclusions> yapısı kullanılarak bunu gerçekleştirebiliriz.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<!-- Tomcat bağımlılığını hariç tut -->
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>