Skip to main content

Content-Type Header

Learn Content-Type Header (HTTP Message Converters, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes Content-Type says what format the message body is in, for example Content-Type: application/json on a POST request. Request side : Spring uses it to choose the converter that reads @RequestBody . Response side : it also tells the client how to parse the body Spring sends back.

More lessons in HTTP Message Converters