程序包的使用
org.springframework.web.servlet.mvc.method.annotation
使用org.springframework.web.servlet.mvc.method.annotation的程序包 程序包 说明 org.springframework.test.web.servlet.setup Contains built-inMockMvcBuilderimplementations.org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotationpackage.org.springframework.test.web.servlet.setup使用的org.springframework.web.servlet.mvc.method.annotation中的类 类 说明 RequestMappingHandlerMapping CreatesRequestMappingInfoinstances from type and method-level@RequestMappingannotations in@Controllerclasses.org.springframework.web.servlet.config.annotation使用的org.springframework.web.servlet.mvc.method.annotation中的类 类 说明 ExceptionHandlerExceptionResolver AnAbstractHandlerMethodExceptionResolverthat resolves exceptions through@ExceptionHandlermethods.RequestMappingHandlerAdapter RequestMappingHandlerMapping CreatesRequestMappingInfoinstances from type and method-level@RequestMappingannotations in@Controllerclasses.org.springframework.web.servlet.mvc.method.annotation使用的org.springframework.web.servlet.mvc.method.annotation中的类 类 说明 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.MvcUriComponentsBuilder Creates instances ofUriComponentsBuilderby pointing to@RequestMappingmethods on Spring MVC controllers.MvcUriComponentsBuilder.MethodArgumentBuilder Builder class to create URLs for method arguments.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.RequestBodyAdviceAdapter A convenient starting point for implementingResponseBodyAdvicewith default method implementations.ResponseBodyAdvice Allows customizing the response after the execution of an@ResponseBodyor aResponseEntitycontroller method but before the body is written 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.ServletInvocableHandlerMethod ExtendsInvocableHandlerMethodwith the ability to handle return values through a registeredHandlerMethodReturnValueHandlerand also supports setting the response status based on a method-level@ResponseStatusannotation.SseEmitter.SseEventBuilder A builder for an SSE event.