RockteMQ-AI commented on issue #677:
URL: 
https://github.com/apache/rocketmq-spring/issues/677#issuecomment-5223767825

   **Issue Evaluation**
   
   Category: `question` | Status: **Answered**
   
   In `rocketmq-v5-client-spring-boot-starter`, message keys can be set when 
sending messages via `RocketMQTemplate`:
   
   ```java
   Message<String> msg = MessageBuilder.withPayload("hello")
       .setHeader(MessageConst.PROPERTY_KEYS, "your-key-value")
       .build();
   rocketMQTemplate.syncSend("topic", msg);
   ```
   
   The key is set via the `MessageConst.PROPERTY_KEYS` header in the Spring 
Message builder.
   
   ---
   *Automated evaluation by RockteMQ-AI*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to