You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/09/26 07:05:11 UTC

[GitHub] [rocketmq-spring] liuliuzo edited a comment on issue #219: Support to enable tls through configuration file

liuliuzo edited a comment on issue #219:
URL: https://github.com/apache/rocketmq-spring/issues/219#issuecomment-699443871


   尴尬,由于没想到更优雅的方式,先把问题关闭先,目前项目里先讲究凑合的这么用着。
   
   @ExtRocketMQTemplateConfiguration(nameServer = "${demo.rocketmq.extNameServer}")
   public class RocketMQProducerLifecycleTemplate extends RocketMQTemplate implements RocketMQProducerLifecycle<DefaultMQProducer> {
   
       @Value("${samples.producer.useTLS}")
       private boolean useTLS;
   
       public void prepareStart(DefaultMQProducer producer) {
           producer.setUseTLS(useTLS);
       }
   }


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org