Merge branch '1.5.x'
This commit is contained in:
@@ -42,7 +42,7 @@ import org.springframework.core.env.PropertySource;
|
||||
@Order(Ordered.LOWEST_PRECEDENCE)
|
||||
public class DevToolsPropertyDefaultsPostProcessor implements EnvironmentPostProcessor {
|
||||
|
||||
private static final Map<String, Object> properties;
|
||||
private static final Map<String, Object> PROPERTIES;
|
||||
|
||||
static {
|
||||
Map<String, Object> devToolsProperties = new HashMap<>();
|
||||
@@ -58,7 +58,7 @@ public class DevToolsPropertyDefaultsPostProcessor implements EnvironmentPostPro
|
||||
devToolsProperties.put("spring.mvc.log-resolved-exception", "true");
|
||||
devToolsProperties.put("server.servlet.jsp.init-parameters.development", "true");
|
||||
devToolsProperties.put("spring.reactor.stacktrace-mode.enabled", "true");
|
||||
properties = Collections.unmodifiableMap(devToolsProperties);
|
||||
PROPERTIES = Collections.unmodifiableMap(devToolsProperties);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -66,7 +66,7 @@ public class DevToolsPropertyDefaultsPostProcessor implements EnvironmentPostPro
|
||||
SpringApplication application) {
|
||||
if (isLocalApplication(environment) && canAddProperties(environment)) {
|
||||
PropertySource<?> propertySource = new MapPropertySource("refresh",
|
||||
properties);
|
||||
PROPERTIES);
|
||||
environment.getPropertySources().addLast(propertySource);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user