Spring AMQP + RabbitMQ 3.3.5 ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN

后端 未结 12 1873
南笙
南笙 2020-12-01 00:43

I am getting below exception

org.springframework.amqp.AmqpAuthenticationException: com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED

12条回答
  •  渐次进展
    2020-12-01 01:06

    just add login password to connect to RabbitMq

     CachingConnectionFactory connectionFactory = 
             new CachingConnectionFactory("rabbit_host");
    
     connectionFactory.setUsername("login");
     connectionFactory.setPassword("password");
    

提交回复
热议问题