Tagged articles
Custom Converter
18 articles · Page 1 of 1
This article demonstrates three ways to bind a custom Author object from a single comma‑separated string in Spring Boot 3.5.0 using a custom ConversionService, a PropertyEditor, and the @ConfigurationPropertiesBinding annotation, complete with code samples and resulting output.
ConfigurationPropertiesConfigurationPropertiesBindingConversionService
0 likes · 6 min read

This article introduces Spring Boot 4.1.0’s @RedisListener annotation, showing how it simplifies Redis Pub/Sub integration by eliminating boilerplate, supporting multiple topics, custom converters, and validation, with step‑by‑step code examples and CLI demonstrations.
@RedisListenerCustom ConverterMessage Listener
0 likes · 9 min read

The article explains why front‑end date and enum parameters often cause parsing errors in Spring applications, describes the two independent conversion mechanisms in Spring MVC and Jackson, and provides a step‑by‑step guide to building global custom converters that unify date formats and enum mappings across the whole project.
Custom ConverterEnum MappingJackson
0 likes · 17 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 walks through five comprehensive Spring Boot 3 techniques for converting request parameters—including a custom Converter, PropertyEditor, custom @ConvertUser annotation, argument resolver, and JSON deserializer—showing step‑by‑step implementations, registration details, and runtime screenshots for each approach.
Argument ResolverCustom ConverterJSON Deserializer
0 likes · 10 min read

This tutorial walks through Spring Boot 3.5.0 request parameter binding techniques—including @RequestBody for POST, automatic GET binding, field restrictions, required fields, nested objects, validation annotations, custom enum conversion, and programmatic data binding—providing code samples and execution results for each case.
Custom ConverterInitBinderRequest Binding
0 likes · 8 min read

This article explains Spring’s data‑binding fundamentals, outlines the core DataBinder properties and control parameters, and demonstrates seven practical techniques—including simple POJO binding, @RequestParam, @RequestBody, nested objects, collection binding, HTTP‑header binding, and custom converters with @InitBinder—plus validation, error handling, performance advice, and troubleshooting tips for building robust Spring Boot applications.
Custom ConverterJavaSpring Boot
0 likes · 9 min read

This article demonstrates how to leverage Spring Boot 3's data binding capabilities by converting primitive types to objects, creating custom converters, handling hierarchical object binding, and implementing custom argument resolvers, complete with code examples and execution results.
Custom ConverterJavaSpring Boot
0 likes · 8 min read

Learn how to create and register custom type converters for Spring Boot @ConfigurationProperties, enabling seamless binding of complex objects from property files using @ConfigurationPropertiesBinding and BeanFactoryPostProcessor techniques, including code examples, configuration snippets, and two registration approaches for practical implementation.
ConfigurationPropertiesCustom ConverterSpring Boot
0 likes · 6 min read

This guide walks you through powerful Spring Boot 3 features—including the @Delimiter annotation for automatic collection parsing, custom type converters for @Value, loading YAML files via a FactoryBean, a suite of ordered filters, and using DeferredImportSelector for conditional configuration imports.
Custom ConverterDeferredImportSelectorSpring Boot
0 likes · 9 min read

This article explains how to use Spring Boot's @InitBinder annotation in @Controller and @ControllerAdvice classes to customize WebDataBinder for parameter binding, type conversion, and formatting, and provides five practical examples demonstrating custom editors, converters, global binders, and field restrictions.
Custom ConverterInitBinderJava
0 likes · 6 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 use Spring Boot's Formatter SPI to create custom type converters, implement both simple and annotation‑based formatters, register them in a WebMvcConfigurer, and test the conversions through REST endpoints, complete with code examples.
Custom ConverterFormatter SPIJava
0 likes · 7 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

Learn how to efficiently read and write large Excel files in Java using EasyExcel, covering dependency setup, entity definitions, core annotations, custom converters, complex one‑to‑many export strategies, custom merge annotations, and practical import/export API examples with full code snippets.
Custom ConverterEasyExcelExcel Export
0 likes · 13 min read

This article explains how @InitBinder methods in Spring MVC can initialize WebDataBinder, register custom PropertyEditors, Converters, and Formatters, and demonstrates a complete example with code snippets, while also detailing the internal request‑handling flow that performs parameter binding and type conversion.
Custom ConverterInitBinderSpring Boot
0 likes · 8 min read

This article explains how to globally configure date and time handling in Spring Boot 2.x, covering custom Converter beans for LocalDate, LocalDateTime, and LocalTime, Jackson JSON serialization settings, @InitBinder usage, and common pitfalls such as lambda expressions and parameter binding.
Custom ConverterDate ConversionJackson
0 likes · 18 min read

This comprehensive guide walks Android developers through Retrofit’s fundamentals, usage patterns, URL configuration, parameter handling, custom converters, call adapters, and advanced techniques like file uploads, mock servers, and RxJava integration, providing code examples and deep insights to master network requests efficiently.
AndroidCustom ConverterOkHttp
0 likes · 22 min read
