Skip to main content

String Converter

Learn String Converter (HTTP Message Converters, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes StringHttpMessageConverter reads and writes plain text bodies and supports text/plain and */* . Read : @RequestBody String body gives the raw request text. Write : a method returning String under @ResponseBody or @RestController writes the text directly, not a view name.

More lessons in HTTP Message Converters