Open D-Saber opened 5 years ago
Have you configured items about rocketmq.name-server
& rocketmq.producer.group
in your application?
same issue:
apollo config:
rocketmq.nameServer=http\://onsaddr.mq-internet-access.mq-internet.aliyuncs.com\:80 rocketmq.producer.group=GID_xxxx
error mssage:
Action:
Consider revisiting the entries above or defining a bean of type 'org.apache.rocketmq.spring.core.RocketMQTemplate' in your configuration.
2019-11-14 14:04:28,215 [main] ERROR org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter -
APPLICATION FAILED TO START
Description:
Parameter 0 of constructor in com.vphoto.ai.image.core.controller.TagsDetectController required a bean of type 'org.apache.rocketmq.spring.core.RocketMQTemplate' that could not be found.
The following candidates were found but could not be injected:
Action:
Consider revisiting the entries above or defining a bean of type 'org.apache.rocketmq.spring.core.RocketMQTemplate' in your configuration.
after some research 俺解决了:
启动时候或在application.properties里加这个: apollo.bootstrap.enabled = true
after some research 俺解决了:
启动时候或在application.properties里加这个: apollo.bootstrap.enabled = true
不是的,使用bootstrap阶段注入是没有问题,但是如果项目中springboot对rocketmq-spring进行封装打成组件jar,封装例如:(做一些契合业务的日志发送记录,API约定等等..), 其他业务服务引用此jar是必须配置rocketmq.producer.group的,但是我子消费服务引用此组件时,并不需要使用这个配置。因为这个属于生产组配置。
but after packing rocketmq-spring-boot-starter jar for project then rocketmq.producer.group is must be configured can be used I want to know how his loading order is solved.
Originally posted by @D-Saber in https://github.com/apache/rocketmq-spring/issues/98#issuecomment-541546842