主要错误信息如下:
Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'x-dead-letter-exchange' for queue 'test_simple_queue' in vhost 'my_vhost': received the value 'exchange.dead' of type 'longstr' but current is none, class-id=50, method-id=10
这个问题的原因是该队列之前已经声明了, 在服务器已经存在, 添加了死信队列的配置后再次进行声明, 与已有的不对应造成报错. 可以删除之前的队列, 或者重新声明一个队列来配置死信队列.