James Howe opened SPR-15007 and commented
Unlike @RequestParam or @PathVariable, @RequestBody doesn't seem to understand that an Optional type should imply required=false, nor that Optional.empty() should be passed rather than null.
Affects: 4.3.4
Issue Links:
Referenced from: commits f3cc4ab, eeb7ae5
James Howe opened SPR-15007 and commented
Unlike
@RequestParamor@PathVariable,@RequestBodydoesn't seem to understand that anOptionaltype should implyrequired=false, nor thatOptional.empty()should be passed rather thannull.Affects: 4.3.4
Issue Links:
@RequestParam@RequestBodyshould have a required parameter to allow a request body to be optional@RequestPartReferenced from: commits f3cc4ab, eeb7ae5