{"id":54792,"library":"spring-boot-starter-tomcat","title":"Spring Boot Starter Tomcat","description":"Starter for using Tomcat as the embedded servlet container in Spring Boot applications.","status":"active","version":"4.0.6","language":"java","source_language":null,"source_url":"https://github.com/spring-projects/spring-boot","tags":["spring-boot","tomcat","embedded","servlet"],"install":[{"cmd":"<dependency>\n  <groupId>org.springframework.boot</groupId>\n  <artifactId>spring-boot-starter-tomcat</artifactId>\n  <version>4.0.6</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.springframework.boot:spring-boot-starter-tomcat:4.0.6'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"TomcatServletWebServerFactory","correct":"org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory"}],"quickstart":{"code":"import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;\nimport org.springframework.boot.web.servlet.server.ServletWebServerFactory;\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.context.annotation.Configuration;\n\n@Configuration\npublic class TomcatConfig {\n    @Bean\n    public ServletWebServerFactory servletContainer() {\n        return new TomcatServletWebServerFactory();\n    }\n}","lang":"java","description":"Configure an embedded Tomcat server in a Spring Boot application."},"warnings":[{"fix":"Use Spring Boot 2.x for Tomcat 9.x or upgrade your application to Jakarta EE.","message":"Spring Boot 3.x requires Tomcat 10.x; ensure compatibility with your servlet API version.","severity":"breaking","affected_versions":">=3.0.0"}],"env_vars":null,"search_vec":"'applic':17 'boot':2,16,20 'contain':13 'embed':11,22 'servlet':12,23 'spring':1,15,19 'spring-boot':18 'starter':3,5 'tomcat':4,8,21 'use':7","created_at":"2026-06-15T09:23:34.912653+00:00","updated_at":"2026-06-15T09:23:34.912653+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://spring.io/projects/spring-boot","github":"https://github.com/spring-projects/spring-boot","docs":"https://appdoc.app/artifact/org.springframework.boot/spring-boot-starter-tomcat/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}