Class ServletEndpointRegistrar

java.lang.Object
org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar
All Implemented Interfaces:
org.springframework.boot.web.servlet.ServletContextInitializer

@Deprecated(since="3.3.0", forRemoval=true) public class ServletEndpointRegistrar extends Object implements org.springframework.boot.web.servlet.ServletContextInitializer
Deprecated, for removal: This API element is subject to removal in a future version.
since 3.3.0 in favor of @Endpoint and @WebEndpoint support
ServletContextInitializer to register servlet endpoints.
Since:
2.0.0
  • Constructor Details

    • ServletEndpointRegistrar

      public ServletEndpointRegistrar(String basePath, Collection<ExposableServletEndpoint> servletEndpoints)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • onStartup

      public void onStartup(jakarta.servlet.ServletContext servletContext) throws jakarta.servlet.ServletException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      onStartup in interface org.springframework.boot.web.servlet.ServletContextInitializer
      Throws:
      jakarta.servlet.ServletException