Message Converter Configuration
Learn Message Converter Configuration (Spring MVC Configuration, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes HttpMessageConverter reads the request body into an object and writes a return value into the response body (JSON, XML, text, bytes). Selection depends on the Java type and the Content-Type or Accept header; the first converter that supports both wins. configureMessageConverters replaces the defaults; extendMessageConverters keeps them and lets you add or reorder.