程序包 org.springframework.messaging.handler.annotation.support
Support classes for working with annotated message-handling methods.
接口概要 接口 说明 MessageHandlerMethodFactory A factory forInvocableHandlerMethod
that is suitable to process an incomingMessage
类概要 类 说明 AbstractNamedValueMethodArgumentResolver Abstract base class for resolving method arguments from a named value.AbstractNamedValueMethodArgumentResolver.NamedValueInfo Represents the information about a named value, including name, whether it's required and a default value.AnnotationExceptionHandlerMethodResolver A sub-class ofAbstractExceptionHandlerMethodResolver
that looks forMessageExceptionHandler
-annotated methods in a given class.DefaultMessageHandlerMethodFactory The defaultMessageHandlerMethodFactory
implementation creating anInvocableHandlerMethod
with the necessaryHandlerMethodArgumentResolver
instances to detect and process most of the use cases defined byMessageMapping
.DestinationVariableMethodArgumentResolver Resolves method parameters annotated with@DestinationVariable
.HeaderMethodArgumentResolver Resolves method parameters annotated with@Header
.HeadersMethodArgumentResolver Resolves the following method parameters: Parameters assignable toMap
annotated with@Headers
Parameters of typeMessageHeaders
Parameters assignable toMessageHeaderAccessor
MessageMethodArgumentResolver HandlerMethodArgumentResolver
forMessage
method arguments.PayloadArgumentResolver A resolver to extract and convert the payload of a message using aMessageConverter
.异常错误概要 异常错误 说明 AbstractMethodArgumentResolutionException 已过时。 as of 4.3.6, in favor of the invocation-associatedMethodArgumentResolutionException
MethodArgumentNotValidException Exception to be thrown when a method argument fails validation perhaps as a result of@Valid
style validation, or perhaps because it is required.MethodArgumentTypeMismatchException Exception that indicates that a method argument has not the expected type.