接口的使用
org.springframework.web.WebApplicationInitializer
使用WebApplicationInitializer的程序包 程序包 说明 org.springframework.web.context Contains a variant of the application context interface for web applications, and the ContextLoaderListener that bootstraps a root web application context.org.springframework.web.server.adapter Implementations to adapt to the underlyingorg.springframework.http.client.reactive
reactive HTTP adapter andHttpHandler
.org.springframework.web.servlet.support Support classes for Spring's web MVC framework.org.springframework.web.context中WebApplicationInitializer的使用
实现WebApplicationInitializer的org.springframework.web.context中的类 修饰符和类型 类 说明 class
AbstractContextLoaderInitializer
Convenient base class forWebApplicationInitializer
implementations that register aContextLoaderListener
in the servlet context.org.springframework.web.server.adapter中WebApplicationInitializer的使用
实现WebApplicationInitializer的org.springframework.web.server.adapter中的类 修饰符和类型 类 说明 class
AbstractReactiveWebInitializer
Base class for aWebApplicationInitializer
that installs a Spring Reactive Web Application on a Servlet container.org.springframework.web.servlet.support中WebApplicationInitializer的使用
实现WebApplicationInitializer的org.springframework.web.servlet.support中的类 修饰符和类型 类 说明 class
AbstractAnnotationConfigDispatcherServletInitializer
WebApplicationInitializer
to register aDispatcherServlet
and use Java-based Spring configuration.class
AbstractDispatcherServletInitializer
Base class forWebApplicationInitializer
implementations that register aDispatcherServlet
in the servlet context.