类的使用
org.springframework.core.env.MapPropertySource
使用MapPropertySource的程序包 程序包 说明 org.springframework.core.env Spring's environment abstraction consisting of bean definition profile and hierarchical property source support.org.springframework.core.io.support Support classes for Spring's resource abstraction.org.springframework.mock.env This package contains mock implementations of theEnvironment
andPropertySource
abstractions introduced in Spring 3.1.org.springframework.core.env中MapPropertySource的使用
org.springframework.core.env中MapPropertySource的子类 修饰符和类型 类 说明 class
PropertiesPropertySource
PropertySource
implementation that extracts properties from aProperties
object.class
SystemEnvironmentPropertySource
Specialization ofMapPropertySource
designed for use with system environment variables.org.springframework.core.io.support中MapPropertySource的使用
org.springframework.core.io.support中MapPropertySource的子类 修饰符和类型 类 说明 class
ResourcePropertySource
Subclass ofPropertiesPropertySource
that loads aProperties
object from a givenResource
or resource location such as"classpath:/com/myco/foo.properties"
or"file:/path/to/file.xml"
.org.springframework.mock.env中MapPropertySource的使用
org.springframework.mock.env中MapPropertySource的子类 修饰符和类型 类 说明 class
MockPropertySource
SimplePropertySource
implementation for use in testing.