使用插件实现延时队列,消费者无法识别交换机类型
来源:4-16 RabbitMQ与SpringBoot2.0整合实战-4

两手揣兜里
2018-10-05
@RabbitListener上的交换机type声明为topic时:
ERROR connection.CachingConnectionFactory:1248 - Channel shutdown: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg ‘type’ for exchange ‘lottery_delay_exchange’ in vhost ‘/’: received ‘topic’ but current is ‘‘x-delayed-message’’, class-id=40, method-id=10)
@RabbitListener上的交换机type声明为x-delayed-message时:
org.springframework.beans.factory.BeanInitializationException: Unexpected exchange type: x-delayed-message
rabbitmq版本为3.6.14,这是怎么回事啊?
写回答
1回答
-
阿神
2018-10-05
exchange type 不对,没有这种
012018-10-05
相似问题