接口的使用
org.springframework.boot.web.servlet.ServletContextInitializer
程序包
说明
Web support for actuator endpoints.
Auto-configuration for servlet web servers and Spring MVC.
Embedded reactive and servlet web server implementations backed by Jetty.
Embedded reactive and servlet web server implementations backed by Tomcat.
Embedded reactive and servlet web server implementations backed by Undertow.
Classes and utilities designed to work with the
jakarta.servlet
specification.Servlet based web integrations with Spring's
WebApplicationContext
.Servlet web server abstractions.
-
org.springframework.boot.actuate.endpoint.web中ServletContextInitializer的使用
-
org.springframework.boot.autoconfigure.web.servlet中ServletContextInitializer的使用
-
org.springframework.boot.web.embedded.jetty中ServletContextInitializer的使用
修饰符和类型方法说明protected final void
JettyServletWebServerFactory.configureWebAppContext
(org.eclipse.jetty.ee10.webapp.WebAppContext context, ServletContextInitializer... initializers) Configure the given JettyWebAppContext
for use.protected org.eclipse.jetty.ee10.webapp.Configuration
JettyServletWebServerFactory.getServletContextInitializerConfiguration
(org.eclipse.jetty.ee10.webapp.WebAppContext webAppContext, ServletContextInitializer... initializers) Return a JettyConfiguration
that will invoke the specifiedServletContextInitializer
s.protected org.eclipse.jetty.ee10.webapp.Configuration[]
JettyServletWebServerFactory.getWebAppContextConfigurations
(org.eclipse.jetty.ee10.webapp.WebAppContext webAppContext, ServletContextInitializer... initializers) Return the JettyConfiguration
s that should be applied to the server.JettyServletWebServerFactory.getWebServer
(ServletContextInitializer... initializers) 限定符构造器说明ServletContextInitializerConfiguration
(ServletContextInitializer... initializers) Create a newServletContextInitializerConfiguration
. -
org.springframework.boot.web.embedded.tomcat中ServletContextInitializer的使用
修饰符和类型方法说明protected void
TomcatServletWebServerFactory.configureContext
(Context context, ServletContextInitializer[] initializers) Configure the TomcatContext
.TomcatServletWebServerFactory.getWebServer
(ServletContextInitializer... initializers) protected void
TomcatServletWebServerFactory.prepareContext
(Host host, ServletContextInitializer[] initializers) -
org.springframework.boot.web.embedded.undertow中ServletContextInitializer的使用
修饰符和类型方法说明UndertowServletWebServerFactory.getWebServer
(ServletContextInitializer... initializers) -
org.springframework.boot.web.servlet中ServletContextInitializer的使用
修饰符和类型类说明class
AbstractFilterRegistrationBean<T extends Filter>
Abstract baseServletContextInitializer
to registerFilter
s in a Servlet 3.0+ container.class
AServletContextInitializer
to registerDelegatingFilterProxy
s in a Servlet 3.0+ container.class
DynamicRegistrationBean<D extends Registration.Dynamic>
Base class for Servlet 3.0+dynamic
based registration beans.class
FilterRegistrationBean<T extends Filter>
AServletContextInitializer
to registerFilter
s in a Servlet 3.0+ container.class
Base class for Servlet 3.0+ based registration beans.class
ServletListenerRegistrationBean<T extends EventListener>
AServletContextInitializer
to registerEventListener
s in a Servlet 3.0+ container.class
ServletRegistrationBean<T extends Servlet>
AServletContextInitializer
to registerServlet
s in a Servlet 3.0+ container. -
org.springframework.boot.web.servlet.context中ServletContextInitializer的使用
修饰符和类型方法说明protected Collection
<ServletContextInitializer> ServletWebServerApplicationContext.getServletContextInitializerBeans()
ReturnsServletContextInitializer
s that should be used with the embedded web server. -
org.springframework.boot.web.servlet.server中ServletContextInitializer的使用
修饰符和类型方法说明protected final ServletContextInitializer[]
AbstractServletWebServerFactory.mergeInitializers
(ServletContextInitializer... initializers) Utility method that can be used by subclasses wishing to combine the specifiedServletContextInitializer
parameters with those defined in this instance.修饰符和类型方法说明void
AbstractServletWebServerFactory.addInitializers
(ServletContextInitializer... initializers) void
ConfigurableServletWebServerFactory.addInitializers
(ServletContextInitializer... initializers) AddServletContextInitializer
s to those that should be applied in addition toServletWebServerFactory.getWebServer(ServletContextInitializer...)
parameters.ServletWebServerFactory.getWebServer
(ServletContextInitializer... initializers) Gets a new fully configured but pausedWebServer
instance.protected final ServletContextInitializer[]
AbstractServletWebServerFactory.mergeInitializers
(ServletContextInitializer... initializers) Utility method that can be used by subclasses wishing to combine the specifiedServletContextInitializer
parameters with those defined in this instance.修饰符和类型方法说明void
AbstractServletWebServerFactory.setInitializers
(List<? extends ServletContextInitializer> initializers) void
ConfigurableServletWebServerFactory.setInitializers
(List<? extends ServletContextInitializer> initializers) SetsServletContextInitializer
that should be applied in addition toServletWebServerFactory.getWebServer(ServletContextInitializer...)
parameters.
@Endpoint
and@WebEndpoint
support