ChaoquanTao opened a new issue, #584:
URL: https://github.com/apache/rocketmq-spring/issues/584

   
   **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:
      <dependency>
               <groupId>org.apache.rocketmq</groupId>
               <artifactId>rocketmq-spring-boot-starter</artifactId>
               <version>2.2.2</version>
           </dependency>
   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.
   


-- 
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