Question: What is the purpose of the @RequestBody annotation?
- to create a ThreadLocal byte stream that allows a request to be encoded for reading directly into a database
- to automatically generate a ThreadLocal byte stream from the body of a request that allows a request to scanned for security risks
- to indicate whether an annotated handler method parameter should be bound to the web request body, which is converted by an HttpMessageConverter
- to automatically validate the characters contained in a request to ensure that they are a valid character encoding
Answer: The correct answer of the above question is Option C:to indicate whether an annotated handler method parameter should be bound to the web request body, which is converted by an HttpMessageConverter