类 SpringApplicationJsonEnvironmentPostProcessor
java.lang.Object
org.springframework.boot.env.SpringApplicationJsonEnvironmentPostProcessor
- 所有已实现的接口:
EnvironmentPostProcessor,Ordered
public class SpringApplicationJsonEnvironmentPostProcessor
extends Object
implements EnvironmentPostProcessor, Ordered
An
EnvironmentPostProcessor that parses JSON from
spring.application.json or equivalently SPRING_APPLICATION_JSON and
adds it as a map property source to the Environment. The new properties are
added with higher priority than the system properties.- 从以下版本开始:
- 1.3.0
- 作者:
- Dave Syer, Phillip Webb, Madhura Bhave, Artsiom Yudovin
-
字段概要
字段修饰符和类型字段说明static final intThe default order for the processor.static final StringName of theSPRING_APPLICATION_JSONenvironment variable.static final StringName of thespring.application.jsonproperty.从接口继承的字段 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intgetOrder()voidpostProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) Post-process the givenenvironment.voidsetOrder(int order)
-
字段详细资料
-
SPRING_APPLICATION_JSON_PROPERTY
Name of thespring.application.jsonproperty.- 另请参阅:
-
SPRING_APPLICATION_JSON_ENVIRONMENT_VARIABLE
Name of theSPRING_APPLICATION_JSONenvironment variable.- 另请参阅:
-
DEFAULT_ORDER
public static final int DEFAULT_ORDERThe default order for the processor.- 另请参阅:
-
-
构造器详细资料
-
SpringApplicationJsonEnvironmentPostProcessor
public SpringApplicationJsonEnvironmentPostProcessor()
-
-
方法详细资料
-
getOrder
public int getOrder() -
setOrder
public void setOrder(int order) -
postProcessEnvironment
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) 从接口复制的说明:EnvironmentPostProcessorPost-process the givenenvironment.- 指定者:
postProcessEnvironment在接口中EnvironmentPostProcessor- 参数:
environment- the environment to post-processapplication- the application to which the environment belongs
-