What is HttpMessageConverter?
Learn What is HttpMessageConverter? (HTTP Message Converters, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes What it is : an HttpMessageConverter<T> reads the HTTP body into an object of type T and writes an object of type T to the body. Why it exists : controllers should work with Java objects, not raw bytes, so Spring hides the parsing and formatting. Negotiation : the Content-Type header picks the reader and the Accept header picks the writer.