错误位置:application.properties配置文件;错误如下所示: 错误原因:该配置语句过期了;错误更正,改成新的语句就好了: # 配置开启消息发送确认 spring.rabbitmq.publisher-confirm-type=correlated