@Target(value={PARAMETER,METHOD}) @Retention(value=RUNTIME) @Documented public @interface Payload
MessageConverter
to convert it from serialized form with a
specific MIME type to an Object matching the target method parameter.Modifier and Type | Optional Element and Description |
---|---|
String |
expression
A SpEL expression to be evaluated against the payload object as the root context.
|
boolean |
required
Whether payload content is required.
|
String |
value
Alias for
expression() . |
@AliasFor(value="expression") public abstract String value
expression()
.@AliasFor(value="value") public abstract String expression
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.
When processing STOMP over WebSocket messages this attribute is not supported.