Skip to main content

HttpMessageConverter

Learn HttpMessageConverter (REST API with Spring MVC, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes HttpMessageConverter is the Spring interface that turns an HTTP request body into a Java object and a Java object into a response body. Where it is used : @RequestBody , @ResponseBody , @RestController , HttpEntity and ResponseEntity all go through converters. Selection depends on the Java type and the media type, such as application/json or text/plain .

More lessons in REST API with Spring MVC