RabbitHealthIndicator - Health check failed
This configuration is solution for such a case for for application.yml
spring:
autoconfigure:
exclude: org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration
The issue in external application.yaml file, when added this configuration in my local application.yml inside the project everything works fine.
And for application.properties:
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration
Actually the above answers are correct, but there is a different error here. If your spring application cannot connect to the rabbitmq server while starting up, it gives such an error. If you do the rabbitmq configuration correctly, there is no need to turn off the health check.
You can disable the rabbitmq in your application.properties file:
management.health.rabbit.enabled: false