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

required

val required: Boolean

Whether payload content is required.

Default is true, leading to an exception if there is no payload. Switch to false to have null passed when there is no payload.