接口的使用
org.springframework.core.env.PropertySources
使用PropertySources的程序包 程序包 说明 org.springframework.context.support Classes supporting the org.springframework.context package, such as abstract base classes for ApplicationContext implementations and a MessageSource implementation.org.springframework.core.env Spring's environment abstraction consisting of bean definition profile and hierarchical property source support.org.springframework.context.support中PropertySources的使用
返回PropertySources的org.springframework.context.support中的方法 修饰符和类型 方法 说明 PropertySources
PropertySourcesPlaceholderConfigurer. getAppliedPropertySources()
Return the property sources that were actually applied duringpost-processing
.参数类型为PropertySources的org.springframework.context.support中的方法 修饰符和类型 方法 说明 void
PropertySourcesPlaceholderConfigurer. setPropertySources(PropertySources propertySources)
Customize the set ofPropertySources
to be used by this configurer.org.springframework.core.env中PropertySources的使用
实现PropertySources的org.springframework.core.env中的类 修饰符和类型 类 说明 class
MutablePropertySources
The default implementation of thePropertySources
interface.参数类型为PropertySources的org.springframework.core.env中的构造器 构造器 说明 MutablePropertySources(PropertySources propertySources)
Create a newMutablePropertySources
from the given propertySources object, preserving the original order of containedPropertySource
objects.PropertySourcesPropertyResolver(PropertySources propertySources)
Create a new resolver against the given property sources.