Class TomcatStarter

java.lang.Object
org.springframework.boot.tomcat.TomcatStarter
All Implemented Interfaces:
jakarta.servlet.ServletContainerInitializer

public class TomcatStarter extends Object implements jakarta.servlet.ServletContainerInitializer
ServletContainerInitializer used to trigger ServletContextInitializers and track startup errors.
Since:
4.0.0
  • Constructor Details

    • TomcatStarter

      public TomcatStarter(Iterable<org.springframework.boot.web.servlet.ServletContextInitializer> initializers)
  • Method Details

    • onStartup

      public void onStartup(Set<Class<?>> classes, jakarta.servlet.ServletContext servletContext) throws jakarta.servlet.ServletException
      Specified by:
      onStartup in interface jakarta.servlet.ServletContainerInitializer
      Throws:
      jakarta.servlet.ServletException