草庐IT

redeclaration

全部标签

springboot连接rabbitmq报错:Failed to check/redeclare auto-delete queue(s).

问题springboot项目使用spring-boot-starter-amqp连接rabbitmq时出现报错:Failedtocheck/redeclareauto-deletequeue(s).思路这类问题是因为没有连接上rabbitmq导致的,一般可以的原因有如下几种:1、springboot中的配置文件配置的不对,这其中又分为:(1)配置项格式出错,比如yml格式常见的配置项错位(2)rabbitmq地址错误(3)端口错误这里给出一个最基本的配置项作为参考spring:rabbitmq:host:localhostport:5672username:guestpassword:gues

springboot连接rabbitmq报错:Failed to check/redeclare auto-delete queue(s).

问题springboot项目使用spring-boot-starter-amqp连接rabbitmq时出现报错:Failedtocheck/redeclareauto-deletequeue(s).思路这类问题是因为没有连接上rabbitmq导致的,一般可以的原因有如下几种:1、springboot中的配置文件配置的不对,这其中又分为:(1)配置项格式出错,比如yml格式常见的配置项错位(2)rabbitmq地址错误(3)端口错误这里给出一个最基本的配置项作为参考spring:rabbitmq:host:localhostport:5672username:guestpassword:gues