Custom Converter
Learn Custom Converter (Data Binding, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Converter : an interface Converter<S, T> with one method T convert(S source) that turns a source type into a target type. Use it to bind simple request text, such as an id or a code, to a domain object like Country or an enum with a custom spelling. Register with registry.addConverter in WebMvcConfigurer , or expose it as a Spring Boot bean.