rabbitmq斷開連接,如何保證專案正常啟動,專案是spring專案
uj5u.com熱心網友回復:
如果你是監聽的話 可以使用這種方式監聽@RabbitListener(bindings = @QueueBinding(value = @Queue(value = "${listener.name}", durable = "true"), exchange = @Exchange(value = "${listener.exchange}", durable = "true", type = "topic"), key = "${listener.name}"), containerFactory = "videoSyncListenerMQFactory")
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/133662.html
標籤:Java相關
