Annotation Interface Payload
MessageConverterto convert it from serialized form with a specific MIME type to an Object matching the target method parameter.
- Rossen Stoyanchev, Sam Brannen
Optional Element Summary
expressionA SpEL expression to be evaluated against the payload object as the root context.
This attribute may or may not be supported depending on whether the message being handled contains a non-primitive Object as its payload or is in serialized form and requires message conversion.
This attribute is not supported for:
- STOMP over WebSocket messages
- RSocket interface client
requiredboolean requiredWhether payload content is required.
true, leading to an exception if there is no payload. Switch to
nullpassed when there is no payload.