Type Conversion
Learn Type Conversion (Data Binding, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Type conversion turns request text (always String) into method parameter types such as int , LocalDate , enums or your own classes. Who does it : WebDataBinder uses the ConversionService first, then falls back to PropertyEditor instances. Failure gives a MethodArgumentTypeMismatchException (HTTP 400) for parameters or a typeMismatch field error for form objects.