RabbiMQ 相关问题Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol metho...

Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'testRabbit4' in vhost


由于rabbitmq 消费者 监听消息队列时, 消息队列没有创建 导致上面的异常


解决:   添加如下配置信息


@Configuration

public class RabbitConfig {

@Bean

    Queuequeue3() {

return new Queue("testRabbit4", false);

    }

}

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容