接口的使用
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.reactivereactive 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中的类 修饰符和类型 类 说明 classAbstractContextLoaderInitializerConvenient base class forWebApplicationInitializerimplementations that register aContextLoaderListenerin the servlet context.org.springframework.web.server.adapter中WebApplicationInitializer的使用
实现WebApplicationInitializer的org.springframework.web.server.adapter中的类 修饰符和类型 类 说明 classAbstractReactiveWebInitializerBase class for aWebApplicationInitializerthat installs a Spring Reactive Web Application on a Servlet container.org.springframework.web.servlet.support中WebApplicationInitializer的使用
实现WebApplicationInitializer的org.springframework.web.servlet.support中的类 修饰符和类型 类 说明 classAbstractAnnotationConfigDispatcherServletInitializerWebApplicationInitializerto register aDispatcherServletand use Java-based Spring configuration.classAbstractDispatcherServletInitializerBase class forWebApplicationInitializerimplementations that register aDispatcherServletin the servlet context.