org.springframework.web.method.annotation

Class ErrorsMethodArgumentResolver

  • java.lang.Object
    • org.springframework.web.method.annotation.ErrorsMethodArgumentResolver
  • All Implemented Interfaces:
    HandlerMethodArgumentResolver


    public class ErrorsMethodArgumentResolver
    extends java.lang.Object
    implements 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.

    Since:
    3.1
    Author:
    Rossen Stoyanchev, Juergen Hoeller