I tried to send a transaction message and created an A class, using @ RocketMQTransactionListener and implementing the RocketMQLocalTransactionListener interface, but the application startup prompt:
class org.apache.rocketmq.client.producer.DefaultMQProducer cannot be cast to class org.apache.rocketmq.client.producer.TransactionMQProducer (org.apache.rocketmq.client.producer.DefaultMQProducer and org.apache.rocketmq.client.producer.TransactionMQProducer are in unnamed module of loader 'app')
rocketmq.spring.boot.starter.version: 2.3.0 sprint.boot.version:3.2.4
I tried to send a transaction message and created an A class, using @ RocketMQTransactionListener and implementing the RocketMQLocalTransactionListener interface, but the application startup prompt:
class org.apache.rocketmq.client.producer.DefaultMQProducer cannot be cast to class org.apache.rocketmq.client.producer.TransactionMQProducer (org.apache.rocketmq.client.producer.DefaultMQProducer and org.apache.rocketmq.client.producer.TransactionMQProducer are in unnamed module of loader 'app')