rocketmq-spring icon indicating copy to clipboard operation
rocketmq-spring copied to clipboard

SpringBoot 3.3.10 +JDK21 没有初始化RocketMQTemplate

Open letian-tang opened this issue 8 months ago • 6 comments

没有被执行

Image

测试代码 spring-cloud-test.zip

letian-tang avatar Apr 08 '25 06:04 letian-tang

springboot3.3.0还没被支持吧, 有支持springboot3.3.0的计划不?

sky20086 avatar May 11 '25 03:05 sky20086

哎,一堆问题啊

ncc0706 avatar May 15 '25 07:05 ncc0706

我试了,是可以的。我看了测试代码,只配置了一个name-server,这样是初始化不了producer或者consumer的。这个bean初始化是有条件的 @Conditional(ProducerOrConsumerPropertyCondition.class)

panzhi33 avatar Jun 13 '25 07:06 panzhi33

JDK21 sb3.5 rocket 2.3.4 @RocketMQTransactionListener @Component public class TransactionListener implements RocketMQLocalTransactionListener

消费者配置事务消费就会报错,非事物可以 A component required a bean named 'rocketMQTemplate' that could not be found.

NoBugBoy avatar Aug 21 '25 06:08 NoBugBoy

RocketMQ 相对于 RabbitMQ ,Kafaka 简直就是山寨产品, 官方文档几乎没有, 都 5.3 了还停留在 JDK 8 , 客户端 SDK 版本更是乱的一团糟.

Michael-Ge avatar Aug 31 '25 09:08 Michael-Ge

试试在启动类上加注解:@Import(RocketMQAutoConfiguration.class)

laboratorys avatar Oct 17 '25 08:10 laboratorys