@Retention(value=RUNTIME)
@Target(value=PARAMETER)
public @interface Payload
If there is no such annotation in the parameter list, the default custom type has this annotation.
If there is this annotation in the parameter list, only the message content will be assigned to the annotated parameter.
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
required
if required is true and value is null, method does not execute.
|
java.lang.Class<? extends org.springframework.core.convert.converter.Converter<?,?>>[] |
value
The processing before conversion is executed sequentially, starting from byte[] and ending with the target type.
|
public abstract java.lang.Class<? extends org.springframework.core.convert.converter.Converter<?,?>>[] value
If the result is the same as the target type after the execution in sequence, it is directly assigned, if it is different, MqttConversionService is called for conversion.
Copyright © 2022. All Rights Reserved.