接口 ConfigurableWebServerApplicationContext
- 所有超级接口:
org.springframework.context.ApplicationContext
,org.springframework.context.ApplicationEventPublisher
,AutoCloseable
,org.springframework.beans.factory.BeanFactory
,Closeable
,org.springframework.context.ConfigurableApplicationContext
,org.springframework.core.env.EnvironmentCapable
,org.springframework.beans.factory.HierarchicalBeanFactory
,org.springframework.context.Lifecycle
,org.springframework.beans.factory.ListableBeanFactory
,org.springframework.context.MessageSource
,org.springframework.core.io.ResourceLoader
,org.springframework.core.io.support.ResourcePatternResolver
,WebServerApplicationContext
- 所有已知实现类:
AnnotationConfigReactiveWebServerApplicationContext
,AnnotationConfigServletWebServerApplicationContext
,ReactiveWebServerApplicationContext
,ServletWebServerApplicationContext
,XmlServletWebServerApplicationContext
public interface ConfigurableWebServerApplicationContext extends org.springframework.context.ConfigurableApplicationContext, WebServerApplicationContext
SPI interface to be implemented by most if not allweb server application contexts
. Provides facilities to configure the context, in addition to the methods in the {WebServerApplicationContext} interface.- 从以下版本开始:
- 2.0.0
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
setServerNamespace(String serverNamespace)
Set the server namespace of the context.从接口继承的方法 org.springframework.context.ApplicationContext
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
从接口继承的方法 org.springframework.beans.factory.BeanFactory
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanProvider, getBeanProvider, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch
从接口继承的方法 org.springframework.context.ConfigurableApplicationContext
addApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setEnvironment, setId, setParent
从接口继承的方法 org.springframework.beans.factory.HierarchicalBeanFactory
containsLocalBean, getParentBeanFactory
从接口继承的方法 org.springframework.beans.factory.ListableBeanFactory
containsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation
从接口继承的方法 org.springframework.boot.web.context.WebServerApplicationContext
getServerNamespace, getWebServer
方法详细资料
setServerNamespace
void setServerNamespace(String serverNamespace)
Set the server namespace of the context.- 参数:
serverNamespace
- the server namespace- 另请参阅:
WebServerApplicationContext.getServerNamespace()