接口 EnvironmentPostProcessor
- 所有已知实现类:
CloudFoundryVcapEnvironmentPostProcessor
,ConfigFileApplicationListener
,SpringApplicationJsonEnvironmentPostProcessor
,SystemEnvironmentPropertySourceEnvironmentPostProcessor
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface public interface EnvironmentPostProcessor
Allows for customization of the application'sEnvironment
prior to the application context being refreshed.EnvironmentPostProcessor implementations have to be registered in
META-INF/spring.factories
, using the fully qualified name of this class as the key.EnvironmentPostProcessor
processors are encouraged to detect whether Spring'sOrdered
interface has been implemented or if the@Order
annotation is present and to sort instances accordingly if so prior to invocation.- 从以下版本开始:
- 1.3.0
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, SpringApplication application)
Post-process the givenenvironment
.
方法详细资料
postProcessEnvironment
void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, SpringApplication application)
Post-process the givenenvironment
.- 参数:
environment
- the environment to post-processapplication
- the application to which the environment belongs