Class RequestBodyMethodArgumentResolver

All Implemented Interfaces:
HandlerMethodArgumentResolver

public class RequestBodyMethodArgumentResolver extends AbstractMessageReaderArgumentResolver
Resolves method arguments annotated with @RequestBody by reading the body of the request through a compatible HttpMessageReader.

An @RequestBody method argument is also validated if it is annotated with @jakarta.validation.Valid or Validated. Validation failure results in an ServerWebInputException.

Since:
5.2
Author:
Sebastien Deleuze, Stephane Maldini, Rossen Stoyanchev