springBoot-rabbit MQ-设置手动确认;Channel shutdown: channel error; protocol method.....reply-code=406

时间:2025-02-13 20:47:29

刚开始使用rabbitmq的时候出现错误(代码还是ctrl c来的);Channel shutdown: channel error; protocol method: #method<>(reply-code=406, reply-text=PRECONDITION_FAILED - unknown delivery tag 1, class-id=60, method-id=80)

并没有报错,是一段EEORE

我的原因是配置文件中加这个配置.

  rabbitmq:
    listener:
      simple:
        acknowledge-mode: manual

代码里有手动确认的代码但是配置文件中没有指明。

应该是这个问题 哈哈哈,小萌新