类的使用
org.springframework.core.env.MutablePropertySources
使用MutablePropertySources的程序包 程序包 说明 org.springframework.core.env Spring's environment abstraction consisting of bean definition profile and hierarchical property source support.org.springframework.web.context.support Classes supporting theorg.springframework.web.context
package, such as WebApplicationContext implementations and various utility classes.org.springframework.core.env中MutablePropertySources的使用
返回MutablePropertySources的org.springframework.core.env中的方法 修饰符和类型 方法 说明 MutablePropertySources
AbstractEnvironment. getPropertySources()
MutablePropertySources
ConfigurableEnvironment. getPropertySources()
Return thePropertySources
for thisEnvironment
in mutable form, allowing for manipulation of the set ofPropertySource
objects that should be searched when resolving properties against thisEnvironment
object.参数类型为MutablePropertySources的org.springframework.core.env中的方法 修饰符和类型 方法 说明 protected void
AbstractEnvironment. customizePropertySources(MutablePropertySources propertySources)
Customize the set ofPropertySource
objects to be searched by thisEnvironment
during calls toAbstractEnvironment.getProperty(String)
and related methods.protected void
StandardEnvironment. customizePropertySources(MutablePropertySources propertySources)
Customize the set of property sources with those appropriate for any standard Java environment: "systemProperties""systemEnvironment"org.springframework.web.context.support中MutablePropertySources的使用
参数类型为MutablePropertySources的org.springframework.web.context.support中的方法 修饰符和类型 方法 说明 protected void
StandardServletEnvironment. customizePropertySources(MutablePropertySources propertySources)
Customize the set of property sources with those contributed by superclasses as well as those appropriate for standard servlet-based environments: "servletConfigInitParams""servletContextInitParams""jndiProperties"static void
WebApplicationContextUtils. initServletPropertySources(MutablePropertySources propertySources, ServletContext servletContext)
Convenient variant ofWebApplicationContextUtils.initServletPropertySources(MutablePropertySources, ServletContext, ServletConfig)
that always providesnull
for theServletConfig
parameter.static void
WebApplicationContextUtils. initServletPropertySources(MutablePropertySources sources, ServletContext servletContext, ServletConfig servletConfig)
ReplaceServlet
-basedstub property sources
with actual instances populated with the givenservletContext
andservletConfig
objects.