Question: What is the purpose of the @ResponseBody annotation?
- to validate the char array contained in a response to ensure that it is a valid character encoding
- to generate a local byte stream from the body of a response that allows a request to be scanned for security risks
- to indicate whether a handler method return value should be bound to the web response body in servlet environments
- to ensure a ThreadLocal byte stream that allows a response to be encoded for reading directly into a socket stream
Answer: The correct answer of the above question is Option C:to indicate whether a handler method return value should be bound to the web response body in servlet environments