Skip to main content

Custom Data Binding

Learn Custom Data Binding (Data Binding, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes Custom data binding means teaching Spring MVC how to convert a request string into your own type, such as a Money or Email class. Ways to do it : a Converter , a Formatter , a PropertyEditor , or a type with a single-string constructor or valueOf . Why : without it the binder cannot convert and records a typeMismatch error.

More lessons in Data Binding