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 2019/11/14 08:04:27 UTC

[GitHub] [rocketmq-spring] D-Saber commented on issue #157: @ConditionalOnBean (types: org.apache.rocketmq.client.producer.DefaultMQProducer; SearchStrategy: all)

D-Saber commented on issue #157: @ConditionalOnBean (types: org.apache.rocketmq.client.producer.DefaultMQProducer; SearchStrategy: all) 
URL: https://github.com/apache/rocketmq-spring/issues/157#issuecomment-553772499
 
 
   > after some research 俺解决了:
   > 
   > 启动时候或在application.properties里加这个:
   > apollo.bootstrap.enabled = true
   > 
   > https://github.com/ctripcorp/apollo/wiki/Java%E5%AE%A2%E6%88%B7%E7%AB%AF%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97#3213-spring-boot%E9%9B%86%E6%88%90%E6%96%B9%E5%BC%8F%E6%8E%A8%E8%8D%90
   
   不是的,使用bootstrap阶段注入是没有问题,但是如果项目中springboot对rocketmq-spring进行封装打成组件jar,封装例如:(做一些契合业务的日志发送记录,API约定等等..), 其他业务服务引用此jar是必须配置rocketmq.producer.group的,但是我子消费服务引用此组件时,并不需要使用这个配置。因为这个属于生产组配置。

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


With regards,
Apache Git Services