Open 2507007808 opened 4 years ago
Refer https://github.com/apache/rocketmq/blob/master/client/src/main/java/org/apache/rocketmq/client/ClientConfig.java#L59, the default value of vipChannelEnabled is false.
BTW, earlier version the default value of vipChannelEnabled is true.
could you please help to upgrade rockemq client version and modify the default value of vipChannelEnabled?
Spring Cloud Stream + RocketMQ 发送消息失败
错误描述 RocketMQMessageHandler : RocketMQ Message hasn't been sent. Caused by Send [1] times, still failed, cost [xxx]ms
导入Stream依赖
在SpringBootApplication中声明 @EnableBinding(Source.class)
使用Source发送消息 @Autowired private Source source;
String payload = "This is Payload"; boolean success = source.output().send(MessageBuilder.withPayload(payload).build());
5、临时解决方案添加yaml文件的vipChannelEnabled默认值为false spring: cloud: stream: rocketmq: default: producer: vipChannelEnabled: true binder: name-server: xxx.xxx.xxx.xxx
备注 :环境配置 jdk 1.8 rocketmq-spring-boot-starter 2.0.3 spring-cloud-starter-stream-rocketmq Version 2.2.1.RELEASE RocketMQ 4.5.1