程序包 org.springframework.boot.env
Spring
Environment
support.接口概要 接口 说明 EnvironmentPostProcessor Allows for customization of the application'sEnvironment
prior to the application context being refreshed.PropertySourceLoader Strategy interface located viaSpringFactoriesLoader
and used to load aPropertySource
.类概要 类 说明 OriginTrackedMapPropertySource PropertiesPropertySourceLoader Strategy to load '.properties' files into aPropertySource
.RandomValuePropertySource PropertySource
that returns a random value for any property that starts with "random.".SpringApplicationJsonEnvironmentPostProcessor AnEnvironmentPostProcessor
that parses JSON fromspring.application.json
or equivalentlySPRING_APPLICATION_JSON
and adds it as a map property source to theEnvironment
.SystemEnvironmentPropertySourceEnvironmentPostProcessor AnEnvironmentPostProcessor
that replaces the systemEnvironmentSystemEnvironmentPropertySource
with anSystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource
that can track theSystemEnvironmentOrigin
for every system environment property.SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource SystemEnvironmentPropertySource
that also tracksOrigin
.YamlPropertySourceLoader Strategy to load '.yml' (or '.yaml') files into aPropertySource
.