程序包 org.springframework.web.servlet.mvc.method.annotation
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package. Entry points are RequestMappingHandlerMapping and RequestMappingHandlerAdapter.接口概要 接口 说明 DeferredResultAdapter 已过时。 in 4.3.8 since 5.0 adds first-class support for reactive type return values from Spring MVC controller methods based on the pluggableReactiveAdapterRegistrymechanism.MvcUriComponentsBuilder.MethodInvocationInfo RequestBodyAdvice Allows customizing the request before its body is read and converted into an Object and also allows for processing of the resulting Object before it is passed into a controller method as an@RequestBodyor anHttpEntitymethod argument.ResponseBodyAdvice<T> Allows customizing the response after the execution of an@ResponseBodyor aResponseEntitycontroller method but before the body is written with anHttpMessageConverter.ResponseBodyEmitterAdapter 已过时。 in 4.3.8 since 5.0 adds first-class support for reactive type return values from Spring MVC controller methods based on the pluggableReactiveAdapterRegistrymechanism.SseEmitter.SseEventBuilder A builder for an SSE event.StreamingResponseBody A controller method return value type for asynchronous request processing where the application can write directly to the responseOutputStreamwithout holding up the Servlet container thread.类概要 类 说明 AbstractJsonpResponseBodyAdvice 已过时。 Will be removed as of Spring Framework 5.1, use CORS instead.AbstractMappingJacksonResponseBodyAdvice A convenient base class forResponseBodyAdviceimplementations that customize the response before JSON serialization withAbstractJackson2HttpMessageConverter's concrete subclasses.AbstractMessageConverterMethodArgumentResolver A base class for resolving method argument values by reading from the body of a request withHttpMessageConverters.AbstractMessageConverterMethodProcessor ExtendsAbstractMessageConverterMethodArgumentResolverwith the ability to handle method return values by writing to the response withHttpMessageConverters.AsyncTaskMethodReturnValueHandler Handles return values of typeWebAsyncTask.CallableMethodReturnValueHandler Handles return values of typeCallable.CompletionStageReturnValueHandler 已过时。 as of 4.3DeferredResultMethodReturnValueHandlersupports CompletionStage return values via an adapter mechanism.DeferredResultMethodReturnValueHandler Handler for return values of typeDeferredResult,ListenableFuture,CompletionStageand any other async type with aregistered adapter.ExceptionHandlerExceptionResolver AnAbstractHandlerMethodExceptionResolverthat resolves exceptions through@ExceptionHandlermethods.ExtendedServletRequestDataBinder Subclass ofServletRequestDataBinderthat adds URI template variables to the values used for data binding.HttpEntityMethodProcessor ResolvesHttpEntityandRequestEntitymethod argument values and also handlesHttpEntityandResponseEntityreturn values.HttpHeadersReturnValueHandler HandlesHttpHeadersreturn values.JsonViewRequestBodyAdvice ARequestBodyAdviceimplementation that adds support for Jackson's@JsonViewannotation declared on a Spring MVC@HttpEntityor@RequestBodymethod parameter.JsonViewResponseBodyAdvice AResponseBodyAdviceimplementation that adds support for Jackson's@JsonViewannotation declared on a Spring MVC@RequestMappingor@ExceptionHandlermethod.ListenableFutureReturnValueHandler 已过时。 as of 4.3DeferredResultMethodReturnValueHandlersupports ListenableFuture return values via an adapter mechanism.MatrixVariableMapMethodArgumentResolver Resolves arguments of typeMapannotated with@MatrixVariablewhere the annotation does not specify a name.MatrixVariableMethodArgumentResolver Resolves method arguments annotated with@MatrixVariable.ModelAndViewMethodReturnValueHandler Handles return values of typeModelAndViewcopying view and model information to theModelAndViewContainer.ModelAndViewResolverMethodReturnValueHandler This return value handler is intended to be ordered after all others as it attempts to handle _any_ return value type (i.e. returnstruefor all return types).MvcUriComponentsBuilder Creates instances ofUriComponentsBuilderby pointing to@RequestMappingmethods on Spring MVC controllers.MvcUriComponentsBuilder.MethodArgumentBuilder PathVariableMapMethodArgumentResolver ResolvesMapmethod arguments annotated with an @PathVariablewhere the annotation does not specify a path variable name.PathVariableMethodArgumentResolver Resolves method arguments annotated with an @PathVariable.RedirectAttributesMethodArgumentResolver Resolves method arguments of typeRedirectAttributes.RequestAttributeMethodArgumentResolver Resolves method arguments annotated with an @RequestAttribute.RequestBodyAdviceAdapter A convenient starting point for implementingResponseBodyAdvicewith default method implementations.RequestMappingHandlerAdapter AnAbstractHandlerMethodAdapterthat supportsHandlerMethods with their method argument and return type signature, as defined via@RequestMapping.RequestMappingHandlerMapping CreatesRequestMappingInfoinstances from type and method-level@RequestMappingannotations in@Controllerclasses.RequestPartMethodArgumentResolver Resolves the following method arguments: Annotated with @RequestPartOf typeMultipartFilein conjunction with Spring'sMultipartResolverabstraction Of typejavax.servlet.http.Partin conjunction with Servlet 3.0 multipart requestsRequestResponseBodyMethodProcessor Resolves method arguments annotated with@RequestBodyand handles return values from methods annotated with@ResponseBodyby reading and writing to the body of the request or response with anHttpMessageConverter.ResponseBodyEmitter A controller method return value type for asynchronous request processing where one or more objects are written to the response.ResponseBodyEmitter.DataWithMediaType A simple holder of data to be written along with a MediaType hint for selecting a message converter to write with.ResponseBodyEmitterReturnValueHandler Handler for return values of typeResponseBodyEmitter(and theResponseEntity<ResponseBodyEmitter>sub-class) as well as any other async type with aregistered adapter.ResponseEntityExceptionHandler A convenient base class for@ControllerAdviceclasses that wish to provide centralized exception handling across all@RequestMappingmethods through@ExceptionHandlermethods.ServletCookieValueMethodArgumentResolver AnAbstractCookieValueMethodArgumentResolverthat resolves cookie values from anHttpServletRequest.ServletInvocableHandlerMethod ExtendsInvocableHandlerMethodwith the ability to handle return values through a registeredHandlerMethodReturnValueHandlerand also supports setting the response status based on a method-level@ResponseStatusannotation.ServletModelAttributeMethodProcessor A Servlet-specificModelAttributeMethodProcessorthat applies data binding through a WebDataBinder of typeServletRequestDataBinder.ServletRequestDataBinderFactory Creates aServletRequestDataBinder.ServletRequestMethodArgumentResolver Resolves request-related method argument values of the following types:WebRequestServletRequestMultipartRequestHttpSessionPrincipalInputStreamReaderHttpMethod(as of Spring 4.0)LocaleTimeZone(as of Spring 4.0)ZoneId(as of Spring 4.0 and Java 8)ServletResponseMethodArgumentResolver ServletWebArgumentResolverAdapter A Servlet-specificAbstractWebArgumentResolverAdapterthat creates aNativeWebRequestfromServletRequestAttributes.SessionAttributeMethodArgumentResolver Resolves method arguments annotated with an @SessionAttribute.SseEmitter A specialization ofResponseBodyEmitterfor sending Server-Sent Events.StreamingResponseBodyReturnValueHandler Supports return values of typeStreamingResponseBodyand alsoResponseEntity<StreamingResponseBody>.UriComponentsBuilderMethodArgumentResolver Resolvers argument values of typeUriComponentsBuilder.ViewMethodReturnValueHandler Handles return values that are of typeView.ViewNameMethodReturnValueHandler Handles return values of typesvoidandStringinterpreting them as view name reference.