spring-framework / org.springframework.messaging.handler.annotation / Payload / expression

expression

@AliasFor("value") val expression: String

A 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.

When processing STOMP over WebSocket messages this attribute is not supported.

Since
4.2