Content Negotiation
Learn Content Negotiation (HTTP Message Converters, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Content negotiation is how Spring MVC decides the response format (JSON, XML, CSV) when a resource can be served in several. Default strategy : the Accept request header; Spring picks the best match from what the controller can produce. Result : if nothing matches, the response is 406 Not Acceptable .