Tagged articles
HttpMessageConverter
13 articles · Page 1 of 1
This article explains Spring Boot's HttpMessageConverter and Content Negotiation mechanisms, covering default converters, source code flow, customization via WebMvcConfigurer, and troubleshooting 415/406 errors.
Content NegotiationHttpMessageConverterJSON
0 likes · 15 min read

The article explains that @RequestBody in Spring Boot is not just a JSON deserializer but a unified HTTP request‑body entry point that can process JSON, XML, plain text, binary streams, byte arrays, form data, files and custom media types through Spring MVC's HttpMessageConverter system.
Content-TypeHttpMessageConverterRequestBody
0 likes · 12 min read

This article explains how Spring MVC’s @RequestBody annotation is a universal entry point for HTTP request bodies, supporting JSON, XML, plain text, binary streams, maps, lists, and custom media types through its HttpMessageConverter mechanism, with concrete code examples and configuration details.
Custom ConverterHttpMessageConverterJSON
0 likes · 12 min read

This article explains how SpringBoot’s DispatcherServlet acts as the central dispatcher of the Web module, detailing its role and the surrounding core components—HandlerMapping, HandlerAdapter, HandlerExceptionResolver, ViewResolver, and HttpMessageConverter—along with practical code examples and common pitfalls.
DispatcherServletHandlerAdapterHandlerMapping
0 likes · 14 min read

This guide shows how to configure Spring Boot to automatically wrap all controller responses in a unified Result object, apply global JSON formatting for dates, Long values, null handling, and custom enum serialization using HttpMessageConverter, ResponseBodyAdvice, and a global exception handler.
Global Exception HandlingHttpMessageConverterJSON Formatting
0 likes · 7 min read

This article demonstrates how to implement multi‑version REST APIs in Spring Boot 3 by leveraging @RequestMapping attributes such as headers, params, and consumes, providing complete code examples, request screenshots, and a custom HttpMessageConverter for Content‑Type based versioning.
API versioningConsumesHeaders
0 likes · 10 min read

This article explains the JSONP technique, demonstrates how to implement it in Spring Boot with a simple REST endpoint, custom JSONP wrapper, ResponseBodyAdvice, and a customized HttpMessageConverter, and shows how to test the solution using HTML script tags.
Cross-OriginHttpMessageConverterJSONP
0 likes · 9 min read

This guide explains why and how to create a custom HttpMessageConverter in Spring Boot 2.7.12, covering the implementation of the converter, its registration in the MVC configuration, testing with Postman, and the underlying request‑response processing mechanism.
HttpMessageConverterJavaSpring Boot
0 likes · 7 min read

This article demonstrates how to create a custom HttpMessageConverter in Spring Boot 2.6.12 to parse a simple “name:张三,age:20” string into a Users object, configure it in WebMvc, and explains the underlying Spring MVC request‑handling flow that invokes the converter.
Custom ConverterHttpMessageConverterRequestBody
0 likes · 8 min read

This guide explains how to implement a custom HttpMessageConverter in Spring Boot 2.5, covering the converter class, configuration, data model, controller, testing steps, and the internal request‑handling flow within the Spring MVC framework.
Custom ConverterHttpMessageConverterRequestBody
0 likes · 8 min read

This article explains Spring Boot's default JSON response, the internal HttpMessageConverter selection process, and how to configure XML and custom YAML responses by adding Jackson dependencies and implementing a custom HttpMessageConverter.
HttpMessageConverterJSONSpring Boot
0 likes · 6 min read

This article explains how Spring's HttpMessageConverter abstracts HTTP message conversion, shows how to read request bodies via HttpInputMessage and ServletServerHttpRequest, demonstrates a practical filter using FormHttpMessageConverter, and illustrates writing JSON responses with MappingJackson2HttpMessageConverter, all with concise code examples.
BackendHttpMessageConverterJava
0 likes · 6 min read

In Spring MVC, the default data format returned by @ResponseBody depends on the client’s Accept header, and the framework selects an appropriate HttpMessageConverter through RequestResponseBodyMethodProcessor, which evaluates acceptable and producible media types to produce JSON, XML, or other formats.
Accept HeaderHttpMessageConverterJava
0 likes · 5 min read
