See gh-42192
This commit is contained in:
arefbehboudi
2024-09-09 16:13:35 +03:30
committed by Stéphane Nicoll
parent 24040e2919
commit a5367b52c2
4 changed files with 4 additions and 9 deletions

View File

@@ -103,12 +103,9 @@ class JsonValueWriter {
else if (value instanceof Map<?, ?> map) {
writeObject(map::forEach);
}
else if (value instanceof Number) {
else if (value instanceof Number || value instanceof Boolean) {
append(value.toString());
}
else if (value instanceof Boolean) {
append(Boolean.TRUE.equals(value) ? "true" : "false");
}
else {
writeString(value);
}

View File

@@ -238,9 +238,7 @@ public class Log4J2LoggingSystem extends AbstractLoggingSystem {
private void load(LoggingInitializationContext initializationContext, String location, LogFile logFile) {
List<String> overrides = getOverrides(initializationContext);
if (initializationContext != null) {
applySystemProperties(initializationContext.getEnvironment(), logFile);
}
applySystemProperties(initializationContext.getEnvironment(), logFile);
loadConfiguration(location, logFile, overrides);
}

View File

@@ -29,7 +29,7 @@ import org.springframework.web.server.ServerWebExchange;
/**
* {@link ApplicationContext} backed {@link ServerWebExchangeMatcher}. Can work directly
* with the {@link ApplicationContext}, obtain an existing bean or
* {@link AutowireCapableBeanFactory#createBean(Class, int, boolean) create a new bean}
* {@link AutowireCapableBeanFactory#createBean(Class) create a new bean}
* that is autowired in the usual way.
*
* @param <C> the type of the context that the match method actually needs to use. Can be

View File

@@ -30,7 +30,7 @@ import org.springframework.web.context.support.WebApplicationContextUtils;
/**
* {@link ApplicationContext} backed {@link RequestMatcher}. Can work directly with the
* {@link ApplicationContext}, obtain an existing bean or
* {@link AutowireCapableBeanFactory#createBean(Class, int, boolean) create a new bean}
* {@link AutowireCapableBeanFactory#createBean(Class) create a new bean}
* that is autowired in the usual way.
*
* @param <C> the type of the context that the match method actually needs to use. Can be