apache / apache/rocketmq-spring
RocketMQMessageListener annotation can't resolve placeholder of namespace, accessKey and secretKey
- Dominant language
- Java
- Stars
- 2.3k
- Forks
- 943
- PR merge metrics
- No merged PRs in 30d
Description
**BUG REPORT**
1. Please describe the issue you observed:
- What did you do (The steps to reproduce)?
I have two rocketmq cluster to consume, for one of them, I use RocketMQMessageListener with auto config yml to define a consumer, and for another, I have to explicitly specify configuration like this:
```
@RocketMQMessageListener(consumerGroup = "msg-center-pub-downstream-consumer", topic = "abc",
namespace = "${rocketmq.paas.consumer.namespace}",
accessKey = "${rocketmq.paas.consumer.access-key}",
secretKey = "${rocketmq.paas.consumer.secret-key}")
```
but I find out the placeholder can not be resolved.
- What did you expect to see?
the placeholder of namespace, accessKey, secretKey of RocketMQMessageListener could be resolved correctly.
- What did you see instead?
the placeholder can not be resolved
2. Please tell us about your environment:
org.apache.rocketmq
rocketmq-spring-boot-starter
2.2.2
3. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):
I noticed that in `org.apache.rocketmq.spring.support.DefaultRocketMQListenerContainer#initRocketMQPushConsumer` the accessKey param and secretKey param are used directly without resolve.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.