Actually in my RabbitMQ config I have declared 10 consumers for each queue. So all consumer threads are created before my Spring Boot application is fully up so it is taking time on application startup.
I want to lazy load all my Rabbitmq queue when my project is up. I tried using @Lazy
on the configuration class but it does not seem working.
Is there any way to declare lazy load queue ?