类 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 int
The default order for the processor.static final String
Name of theSPRING_APPLICATION_JSON
environment variable.static final String
Name of thespring.application.json
property.从接口继承的字段 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明int
getOrder()
void
postProcessEnvironment
(ConfigurableEnvironment environment, SpringApplication application) Post-process the givenenvironment
.void
setOrder
(int order)
-
字段详细资料
-
SPRING_APPLICATION_JSON_PROPERTY
Name of thespring.application.json
property.- 另请参阅:
-
SPRING_APPLICATION_JSON_ENVIRONMENT_VARIABLE
Name of theSPRING_APPLICATION_JSON
environment 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) 从接口复制的说明:EnvironmentPostProcessor
Post-process the givenenvironment
.- 指定者:
postProcessEnvironment
在接口中EnvironmentPostProcessor
- 参数:
environment
- the environment to post-processapplication
- the application to which the environment belongs
-