Package org.springframework.web.method.annotation
@NonNullApi
@NonNullFields
package org.springframework.web.method.annotation
Support classes for annotation-based handler method processing.
-
ClassDescriptionA base abstract class to resolve method arguments annotated with
@CookieValue.Abstract base class for resolving method arguments from a named value.Represents the information about a named value, including name, whether it's required and a default value.An abstract base class adapting aWebArgumentResolverto theHandlerMethodArgumentResolvercontract.ResolvesErrorsmethod arguments.@ExceptionHandlermapping information.Discovers @ExceptionHandler methods in a given class, including all of its superclasses, and helps to resolve a givenExceptionandMediaTyperequested by clients to combinations supported by a givenMethod.Resolves method arguments annotated with@Value.ResponseStatusExceptionthat is alsoMethodValidationResult.Contract to handle validation results with callbacks by controller method parameter type, withHandlerMethodValidationException.Visitor.other(org.springframework.validation.method.ParameterValidationResult)serving as the fallthrough.MethodValidatorthat uses Bean Validation to validate@RequestMappingmethod arguments.Adds initialization to a WebDataBinder via@InitBindermethods.A ConversionNotSupportedException raised while resolving a method argument.A TypeMismatchException raised while resolving a controller method argument.Resolve@ModelAttributeannotated method arguments and handle return values from@ModelAttributeannotated methods.Assist with initialization of theModelbefore controller method invocation and with updates to it after the invocation.ResolvesMapmethod arguments annotated with@RequestHeader.Resolves method arguments annotated with@RequestHeaderexcept forMaparguments.ResolvesMapmethod arguments annotated with an @RequestParamwhere the annotation does not specify a request parameter name.Resolves method arguments annotated with @RequestParam, arguments of typeMultipartFilein conjunction with Spring'sMultipartResolverabstraction, and arguments of typejakarta.servlet.http.Partin conjunction with Servlet multipart requests.Manages controller-specific session attributes declared via@SessionAttributes.Resolves aSessionStatusargument by obtaining it from theModelAndViewContainer.