public class ServerlessEnvironmentPostProcessor extends Object implements org.springframework.boot.env.EnvironmentPostProcessor, org.springframework.core.Ordered
ServerlessEnvironmentPostProcessor class.
| Modifier and Type | Field and Description |
|---|---|
static String |
SPRING_ACTIVE_PROFILES
Constant
SPRING_ACTIVE_PROFILES="spring.profiles.active" |
static String |
SPRING_ADDITIONAL_LOCATION
Constant
SPRING_ADDITIONAL_LOCATION="spring.config.additional-location" |
static String |
SPRING_CONFIG_LOCATION
Constant
SPRING_CONFIG_LOCATION="spring.config.location" |
| Constructor and Description |
|---|
ServerlessEnvironmentPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCanonicalPath(String path)
getCanonicalPath.
|
int |
getOrder() |
void |
postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment,
org.springframework.boot.SpringApplication application) |
public static final String SPRING_CONFIG_LOCATION
SPRING_CONFIG_LOCATION="spring.config.location"public static final String SPRING_ADDITIONAL_LOCATION
SPRING_ADDITIONAL_LOCATION="spring.config.additional-location"public static final String SPRING_ACTIVE_PROFILES
SPRING_ACTIVE_PROFILES="spring.profiles.active"public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment,
org.springframework.boot.SpringApplication application)
postProcessEnvironment in interface org.springframework.boot.env.EnvironmentPostProcessorpublic int getOrder()
优先级在 ConfigFileApplicationListener / ConfigDataEnvironmentPostProcessor 紧跟之后
getOrder in interface org.springframework.core.OrderedCopyright © 2024. All rights reserved.