接口 ConfigurableWebEnvironment
- 所有已知实现类:
StandardServletEnvironment
public interface ConfigurableWebEnvironment extends ConfigurableEnvironment
Specialization ofConfigurableEnvironmentallowing initialization of servlet-relatedPropertySourceobjects at the earliest moment that theServletContextand (optionally)ServletConfigbecome available.- 从以下版本开始:
- 3.1.2
- 作者:
- Chris Beams
- 另请参阅:
EnvironmentCapable.getEnvironment()
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidinitPropertySources(ServletContext servletContext, ServletConfig servletConfig)Replace any stub property source instances acting as placeholders with real servlet context/config property sources using the given parameters.从接口继承的方法 org.springframework.core.env.ConfigurableEnvironment
addActiveProfile, getPropertySources, getSystemEnvironment, getSystemProperties, merge, setActiveProfiles, setDefaultProfiles
从接口继承的方法 org.springframework.core.env.ConfigurablePropertyResolver
getConversionService, setConversionService, setIgnoreUnresolvableNestedPlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setRequiredProperties, setValueSeparator, validateRequiredProperties
从接口继承的方法 org.springframework.core.env.Environment
acceptsProfiles, getActiveProfiles, getDefaultProfiles
从接口继承的方法 org.springframework.core.env.PropertyResolver
containsProperty, getProperty, getProperty, getProperty, getProperty, getPropertyAsClass, getRequiredProperty, getRequiredProperty, resolvePlaceholders, resolveRequiredPlaceholders
方法详细资料
initPropertySources
void initPropertySources(ServletContext servletContext, ServletConfig servletConfig)
Replace any stub property source instances acting as placeholders with real servlet context/config property sources using the given parameters.- 参数:
servletContext- theServletContext(may not benull)servletConfig- theServletConfig(nullif not available)- 另请参阅:
WebApplicationContextUtils.initServletPropertySources( org.springframework.core.env.MutablePropertySources, ServletContext, ServletConfig)