程序包 org.springframework.boot.context.embedded
Specialized
ApplicationContext
that supports embedded servlet containers.接口概要 接口 说明 ConfigurableEmbeddedServletContainer Simple interface that represents customizations to anEmbeddedServletContainerFactory
.EmbeddedServletContainer Simple interface that represents a fully configured embedded servlet container (for example Tomcat or Jetty).EmbeddedServletContainerCustomizer Strategy interface for customizing auto-configured embedded servlet containers.EmbeddedServletContainerFactory Factory interface that can be used to createEmbeddedServletContainer
s.SslStoreProvider Interface to provide SSL key stores for anEmbeddedServletContainer
to use.类概要 类 说明 AbstractConfigurableEmbeddedServletContainer Abstract base class forConfigurableEmbeddedServletContainer
implementations.AbstractEmbeddedServletContainerFactory Abstract base class forEmbeddedServletContainerFactory
implementations.AnnotationConfigEmbeddedWebApplicationContext EmbeddedWebApplicationContext
that accepts annotated classes as input - in particular@Configuration
-annotated classes, but also plain@Component
classes and JSR-330 compliant classes usingjavax.inject
annotations.Compression Simple container-independent abstraction for compression configuration.EmbeddedServletContainerCustomizerBeanPostProcessor BeanPostProcessor
that applies allEmbeddedServletContainerCustomizer
s from the bean factory toConfigurableEmbeddedServletContainer
beans.EmbeddedServletContainerInitializedEvent Event to be published after the context is refreshed and theEmbeddedServletContainer
is ready.EmbeddedWebApplicationContext AWebApplicationContext
that can be used to bootstrap itself from a containedEmbeddedServletContainerFactory
bean.EmbeddedWebApplicationContext.ExistingWebApplicationScopes Utility class to store and restore any user defined scopes.InitParameterConfiguringServletContextInitializer AServletContextInitializer
that configures init parameters on theServletContext
.JspServlet Configuration for the container's JSP servlet.MimeMappings Simple container-independent abstraction for servlet mime mappings.MimeMappings.Mapping A single mime mapping.ServerPortInfoApplicationContextInitializer ApplicationContextInitializer
that setsEnvironment
properties for the ports thatEmbeddedServletContainer
servers are actually listening on.Ssl Simple container-independent abstraction for SSL configuration.WebApplicationContextServletContextAwareProcessor Variant ofServletContextAwareProcessor
for use with aConfigurableWebApplicationContext
.XmlEmbeddedWebApplicationContext EmbeddedWebApplicationContext
which takes its configuration from XML documents, understood by anXmlBeanDefinitionReader
.枚举概要 枚举 说明 Ssl.ClientAuth Client authentication types.异常错误概要 异常错误 说明 EmbeddedServletContainerException Exceptions thrown by an embedded servlet container.PortInUseException APortInUseException
is thrown when an embedded servlet container fails to start due to a port already being in use.注释类型概要 注释类型 说明 LocalServerPort Annotation at the field or method/constructor parameter level that injects the HTTP port that got allocated at runtime.