类 SystemEnvironmentPropertySourceEnvironmentPostProcessor
- java.lang.Object
- org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor
- 所有已实现的接口:
EnvironmentPostProcessor
,org.springframework.core.Ordered
public class SystemEnvironmentPropertySourceEnvironmentPostProcessor extends Object implements EnvironmentPostProcessor, org.springframework.core.Ordered
AnEnvironmentPostProcessor
that replaces the systemEnvironmentSystemEnvironmentPropertySource
with anSystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource
that can track theSystemEnvironmentOrigin
for every system environment property.- 从以下版本开始:
- 2.0.0
嵌套类概要
嵌套类 修饰符和类型 类 说明 protected static class
SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource
SystemEnvironmentPropertySource
that also tracksOrigin
.
字段概要
字段 修饰符和类型 字段 说明 static int
DEFAULT_ORDER
The default order for the processor.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 int
getOrder()
void
postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, SpringApplication application)
Post-process the givenenvironment
.void
setOrder(int order)
字段详细资料
DEFAULT_ORDER
public static final int DEFAULT_ORDER
The default order for the processor.- 另请参阅:
- 常量字段值
构造器详细资料
SystemEnvironmentPropertySourceEnvironmentPostProcessor
public SystemEnvironmentPropertySourceEnvironmentPostProcessor()
方法详细资料
postProcessEnvironment
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, SpringApplication application)
从接口复制的说明:EnvironmentPostProcessor
Post-process the givenenvironment
.- 指定者:
postProcessEnvironment
在接口中EnvironmentPostProcessor
- 参数:
environment
- the environment to post-processapplication
- the application to which the environment belongs
getOrder
public int getOrder()
- 指定者:
getOrder
在接口中org.springframework.core.Ordered
setOrder
public void setOrder(int order)