You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/12/30 07:08:23 UTC

[GitHub] [rocketmq-spring] turing1989 opened a new issue, #509: use spring boot 3.0

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

   pom
   <dependencies>
   		<dependency>
   			<groupId>org.springframework.boot</groupId>
   			<artifactId>spring-boot-starter-web</artifactId>
   		</dependency>
   		<dependency>
   			<groupId>org.apache.rocketmq</groupId>
   			<artifactId>rocketmq-spring-boot-starter</artifactId>
   			<version>2.2.2</version>
   		</dependency>
   
   		<dependency>
   			<groupId>org.springframework.boot</groupId>
   			<artifactId>spring-boot-starter-test</artifactId>
   			<scope>test</scope>
   		</dependency>
   	</dependencies>
   
   appliction.yml
   rocketmq:
     name-server: rocket.smart-change.local:9876
     isVIPChannel: false
     producer:
       group: change-group
       send-message-timeout: 30000
   
   [then]
   Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
   2022-12-30T15:07:39.149+08:00 ERROR 48444 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 
   
   ***************************
   APPLICATION FAILED TO START
   ***************************
   
   Description:
   
   Field rocketMQTemplate in com.future.change.smart.changecloud.TestController required a bean of type 'org.apache.rocketmq.spring.core.RocketMQTemplate' that could not be found.
   
   The injection point has the following annotations:
   	- @org.springframework.beans.factory.annotation.Autowired(required=true)
   
   
   Action:
   
   Consider defining a bean of type 'org.apache.rocketmq.spring.core.RocketMQTemplate' in your configuration.
   
   Disconnected from the target VM, address: '127.0.0.1:59240', transport: 'socket'
   
   Process finished with exit code 1
   
   How can i do it well in Spring boot 3.0.0


-- 
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: commits-unsubscribe@rocketmq.apache.org.apache.org

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


[GitHub] [rocketmq-spring] turing1989 closed issue #509: use spring boot 3.0

Posted by GitBox <gi...@apache.org>.
turing1989 closed issue #509: use spring boot 3.0 
URL: https://github.com/apache/rocketmq-spring/issues/509


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


[GitHub] [rocketmq-spring] KouShenhai commented on issue #509: use spring boot 3.0

Posted by GitBox <gi...@apache.org>.
KouShenhai commented on issue #509:
URL: https://github.com/apache/rocketmq-spring/issues/509#issuecomment-1369042885

   You need to create a RocketMQTemplate bean.
   ![image](https://user-images.githubusercontent.com/48756217/210252547-bb704521-4469-4be1-9e85-e95191acb7b3.png)
   This is my solution. I hope it can help you


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


[GitHub] [rocketmq-spring] turing1989 commented on issue #509: use spring boot 3.0

Posted by GitBox <gi...@apache.org>.
turing1989 commented on issue #509:
URL: https://github.com/apache/rocketmq-spring/issues/509#issuecomment-1369302724

   thx


-- 
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: commits-unsubscribe@rocketmq.apache.org

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