spring-framework / org.springframework.web.bind.annotation / RequestBody / required

required

val required: Boolean

Whether body content is required.

Default is true, leading to an exception thrown in case there is no body content. Switch this to false if you prefer null to be passed when the body content is null.

Since
3.2