接口 EnvironmentPostProcessor

所有已知实现类:
CloudFoundryVcapEnvironmentPostProcessor, ConfigDataEnvironmentPostProcessor, DevToolsHomePropertiesPostProcessor, DevToolsPropertyDefaultsPostProcessor, RandomValuePropertySourceEnvironmentPostProcessor, ReactorEnvironmentPostProcessor, SpringApplicationJsonEnvironmentPostProcessor, SystemEnvironmentPropertySourceEnvironmentPostProcessor
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface EnvironmentPostProcessor
Allows for customization of the application's Environment 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. Implementations may implement the Ordered interface or use an @Order annotation if they wish to be invoked in specific order.

Since Spring Boot 2.4, EnvironmentPostProcessor implementations may optionally take the following constructor parameters:

从以下版本开始:
1.3.0
作者:
Andy Wilkinson, Stephane Nicoll
  • 方法详细资料

    • postProcessEnvironment

      void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application)
      Post-process the given environment.
      参数:
      environment - the environment to post-process
      application - the application to which the environment belongs