SpringBoot 3.3.10 +JDK21 没有初始化RocketMQTemplate
springboot3.3.0还没被支持吧, 有支持springboot3.3.0的计划不?
哎,一堆问题啊
我试了,是可以的。我看了测试代码,只配置了一个name-server,这样是初始化不了producer或者consumer的。这个bean初始化是有条件的 @Conditional(ProducerOrConsumerPropertyCondition.class)
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.
RocketMQ 相对于 RabbitMQ ,Kafaka 简直就是山寨产品, 官方文档几乎没有, 都 5.3 了还停留在 JDK 8 , 客户端 SDK 版本更是乱的一团糟.
试试在启动类上加注解:@Import(RocketMQAutoConfiguration.class)