接口的使用
org.springframework.boot.web.context.WebServerApplicationContext
程序包
说明
Web integrations with Spring's
ApplicationContext
.Reactive based web integrations with Spring's
ApplicationContext
.Servlet based web integrations with Spring's
WebApplicationContext
.-
org.springframework.boot.web.context中WebServerApplicationContext的使用
修饰符和类型接口说明interface
SPI interface to be implemented by most if not allweb server application contexts
.修饰符和类型方法说明abstract WebServerApplicationContext
WebServerInitializedEvent.getApplicationContext()
Access the application context that the server was created in.限定符构造器说明MissingWebServerFactoryBeanException
(Class<? extends WebServerApplicationContext> webServerApplicationContextClass, Class<? extends WebServerFactory> webServerFactoryClass, WebApplicationType webApplicationType) Create a newMissingWebServerFactoryBeanException
. -
org.springframework.boot.web.reactive.context中WebServerApplicationContext的使用
修饰符和类型类说明class
ReactiveWebServerApplicationContext
that accepts annotated classes as input - in particular@Configuration
-annotated classes, but also plain@Component
classes and JSR-330 compliant classes usingjavax.inject
annotations.class
AGenericReactiveWebApplicationContext
that can be used to bootstrap itself from a containedReactiveWebServerFactory
bean. -
org.springframework.boot.web.servlet.context中WebServerApplicationContext的使用
修饰符和类型类说明class
ServletWebServerApplicationContext
that accepts annotated classes as input - in particular@Configuration
-annotated classes, but also plain@Component
classes and JSR-330 compliant classes usingjavax.inject
annotations.class
AWebApplicationContext
that can be used to bootstrap itself from a containedServletWebServerFactory
bean.class
ServletWebServerApplicationContext
which takes its configuration from XML documents, understood by anXmlBeanDefinitionReader
.