spring-framework / org.springframework.web.bind.annotation / InitBinder / <init>

<init>

InitBinder(vararg value: String)

Annotation that identifies methods which initialize the org.springframework.web.bind.WebDataBinder which will be used for populating command and form object arguments of annotated handler methods.

Such init-binder methods support all arguments that RequestMapping supports, except for command/form objects and corresponding validation result objects. Init-binder methods must not have a return value; they are usually declared as void.

Typical arguments are org.springframework.web.bind.WebDataBinder in combination with org.springframework.web.context.request.WebRequest or java.util.Locale, allowing to register context-specific editors.

Author
Juergen Hoeller

Since
2.5

See Also
org.springframework.web.bind.WebDataBinderorg.springframework.web.context.request.WebRequest