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/01/12 13:26:15 UTC

[GitHub] [rocketmq-spring] shuowang97 opened a new issue #223: required a bean of type 'org.apache.rocketmq.spring.core.RocketMQTemplate' that could not be found.

shuowang97 opened a new issue #223: required a bean of type 'org.apache.rocketmq.spring.core.RocketMQTemplate' that could not be found.
URL: https://github.com/apache/rocketmq-spring/issues/223
 
 
   **I recently used rocketMQ to achieve message system in my project, but after I downloaded and added these two dependencies in below:**
    
            <dependency>
               <groupId>org.apache.rocketmq</groupId>
               <artifactId>rocketmq-spring-boot-starter</artifactId>
               <version>2.0.0</version>
           </dependency>
           <dependency>
               <groupId>org.apache.rocketmq</groupId>
               <artifactId>rocketmq-client</artifactId>
               <version>4.3.2</version>
           </dependency>
   
   **And I also added spring.rocketmq.producer.group & spring.rocketmq.nameServer in my application.properties file. 
   
   The whole project cannot run and there is an error in below:**
   
   The injection point has the following annotations:
   	- @org.springframework.beans.factory.annotation.Autowired(required=true)
   
   The following candidates were found but could not be injected:
   	- Bean method 'rocketMQTemplate' in 'RocketMQAutoConfiguration' not loaded because @ConditionalOnProperty (spring.rocketmq.nameServer) did not find property 'nameServer'
   
   **When I get into RocketMQAutoConfiguration file:
      It shows errors in DefaultMQProducer and it cannot construct defaultMQProducer in this snippet**
   
   producer = new DefaultMQProducer(groupName, new AclClientRPCHook(new 
                   SessionCredentials(ak, sk)),
                   rocketMQProperties.getProducer().isEnableMsgTrace(),
                   rocketMQProperties.getProducer().getCustomizedTraceTopic());
               producer.setVipChannelEnabled(false);
   
   I am a beginner in RocketMQ and hope you can help out. Thanks in advance.

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

[GitHub] [rocketmq-spring] RongtongJin closed issue #223: required a bean of type 'org.apache.rocketmq.spring.core.RocketMQTemplate' that could not be found.

Posted by GitBox <gi...@apache.org>.
RongtongJin closed issue #223: required a bean of type 'org.apache.rocketmq.spring.core.RocketMQTemplate' that could not be found.
URL: https://github.com/apache/rocketmq-spring/issues/223
 
 
   

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

[GitHub] [rocketmq-spring] RongtongJin commented on issue #223: required a bean of type 'org.apache.rocketmq.spring.core.RocketMQTemplate' that could not be found.

Posted by GitBox <gi...@apache.org>.
RongtongJin commented on issue #223: required a bean of type 'org.apache.rocketmq.spring.core.RocketMQTemplate' that could not be found.
URL: https://github.com/apache/rocketmq-spring/issues/223#issuecomment-573485381
 
 
   You only need to add rocketmq-spring-boot-starter dependency. Do not add rocketmq-client dependency. In addition, it is recommended that you upgrade the version of the rocketmq-spring-boot-starter dependency and refer to the examples in the samples package.

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