Skip to main content

@InitBinder

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

Fresher Notes @InitBinder marks a controller method that customizes the WebDataBinder before binding starts for each request. Typical uses : register custom editors or formatters, trim strings, and allow or block fields. Signature : the method returns void and takes a WebDataBinder (and optionally a WebRequest or Locale ).

More lessons in Data Binding