Allow configprops endpoint stringify primitive wrappers
Update `ConfigurationPropertiesReportEndpoint` so that primitive wrapper input values in the Environment are stringified for display. Fixes gh-36076
This commit is contained in:
@@ -394,7 +394,7 @@ public class ConfigurationPropertiesReportEndpoint implements ApplicationContext
|
||||
}
|
||||
|
||||
private Object stringifyIfNecessary(Object value) {
|
||||
if (value == null || value.getClass().isPrimitive()) {
|
||||
if (value == null || ClassUtils.isPrimitiveOrWrapper(value.getClass()) || value instanceof String) {
|
||||
return value;
|
||||
}
|
||||
if (CharSequence.class.isAssignableFrom(value.getClass())) {
|
||||
|
||||
Reference in New Issue
Block a user