報錯內(nèi)容
ERROR CachingConnectionFactory Channel shutdown: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - unknown delivery tag 1, class-id=60, method-id=80)
原因?
?默認(rèn)是自動ack,然后你代碼又手動ack,導(dǎo)致ack了兩次,報了錯。
解決辦法文章來源:http://www.zghlxwxcb.cn/news/detail-603486.html
?配置文件設(shè)置為手動ack文章來源地址http://www.zghlxwxcb.cn/news/detail-603486.html
spring.rabbitmq.listener.direct.acknowledge-mode=manual
到了這里,關(guān)于【Rabbitmq】報錯:ERROR CachingConnectionFactory Channel shutdown: channel error;的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!