spring-framework / org.springframework.web.method.annotation / ErrorsMethodArgumentResolver

ErrorsMethodArgumentResolver

open class ErrorsMethodArgumentResolver : HandlerMethodArgumentResolver

Resolves Errors method arguments.

An Errors method argument is expected to appear immediately after the model attribute in the method signature. It is resolved by expecting the last two attributes added to the model to be the model attribute and its BindingResult.

Author
Rossen Stoyanchev

Since
3.1

Constructors

<init>

ErrorsMethodArgumentResolver()

Resolves Errors method arguments.

An Errors method argument is expected to appear immediately after the model attribute in the method signature. It is resolved by expecting the last two attributes added to the model to be the model attribute and its BindingResult.

Functions

resolveArgument

open fun resolveArgument(parameter: MethodParameter, mavContainer: ModelAndViewContainer, webRequest: NativeWebRequest, binderFactory: WebDataBinderFactory): Any

supportsParameter

open fun supportsParameter(parameter: MethodParameter): Boolean