You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "RockteMQ-AI (via GitHub)" <gi...@apache.org> on 2026/08/08 01:11:07 UTC
Re: [I] springbot3.3 引用rocketmq-spring-boot-starter时,mvn构建出现的警告 [rocketmq-spring]
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org