Mini Project: A Custom CSV Message Converter
Learn Mini Project: A Custom CSV Message Converter (HTTP Message Converters, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Mini Real-Time Project: A Custom CSV Message Converter Problem An accounting tool wants to read and download product lists as CSV, while the mobile app wants JSON. The same controller method must serve both, chosen by the Accept and Content-Type headers. Requirements Write an HttpMessageConverter for a ProductList that reads and writes text/csv. Register it next to the built-in JSON converter. Download the list as JSON or as CSV depending on Accept. Upload CSV and have it parsed into objects. Show the converter chain. Concepts Used HttpMessageConverter AbstractHttpMessageConverter...