I think we should quote or somehow delimit the value that's output in the failure analysis. It looks like this at the moment:
Property: spring.servlet.multipart.file-size-threshold
Value: 2KB
Origin: class path resource [application.properties]:24:46
Reason: failed to convert java.lang.String to org.springframework.util.unit.DataSize
I think something like this would be better:
Property: spring.servlet.multipart.file-size-threshold
Value: "2KB "
Origin: class path resource [application.properties]:24:46
Reason: failed to convert java.lang.String to org.springframework.util.unit.DataSize
Comment From: TheoCaldas
Hey! I think I might know how to resolve that. May I try it out?
Comment From: snicoll
@TheoCaldas cool, it's all yours. Let us know if you have any question.
Comment From: TheoCaldas
Hi, I've been wondering about some design decisions. Is it better to delimit the value with "" in all cases or only if there is a trailing whitespace? I think it terms of standardization, the first one is the way to go. What do you think?
Comment From: snicoll
It should be quoted in all cases.
Comment From: philwebb
Closing in favor of PR #31571. Thanks @TheoCaldas!