Skip to main content

Property Editors

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

Fresher Notes PropertyEditor is the older java.beans API that converts a String to an object and back; Spring MVC still supports it for data binding. How to write one : extend PropertyEditorSupport , override setAsText to parse and getAsText to print. Register it in an @InitBinder method with binder.registerCustomEditor(Type.class, editor) .

More lessons in Data Binding