rabbitmq监听端出现报错
Execution of Rabbit message listener failed.
Caused by: java.lang.IllegalStateException: Channel closed; cannot ack/nack
Channel shutdown: channel error; protocol method: #method<channel.close>(reply-code=406
经排查验证:
是因为监听端代码里加入了手动ACK,
但是在监听工厂类里,却用的自动模式
所以上下不一致,冲突导致报错
解决办法:改成一致即可