You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for java.util.Optional as a @RequestBody [SPR-15007] #19574
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.
Activity
spring-projects-issues commentedon Dec 13, 2016
Juergen Hoeller commented
This is aligned with our
Optionalsupport for@RequestPartarguments now (#17245). To be backported to 4.3.5.