Skip to main content

Header-Based Content Negotiation

Learn Header-Based Content Negotiation (Content Negotiation, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes Header-based negotiation is the default: the client sends an Accept header and Spring picks the matching HttpMessageConverter . Response : the chosen type is written to the Content-Type header of the reply. No match means 406 Not Acceptable ; a wrong request body type means 415 Unsupported Media Type .

More lessons in Content Negotiation