SpringBoot整合RabbitMQ遇到的问题:
出现问题报错情况如下:
org.springframework.amqp.AmqpAuthenticationException: com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.
Caused by: com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.
大致错误如上。
解决办法:
在RabbitMQ的web可视化页面添加一个拥有administrator权限的新用户,将springboot项目中的application.properties中的配置改成这个用户的相关信息即可。