@RabbitListener(bindings = @QueueBinding( value = @Queue(value = "queue-1", durable="true"), exchange = @Exchange(value = "exchange-1", durable="true", type= "topic", ignoreDeclarationExceptions = "true"), key = "springboot.*" ) )
1 RabbitListenerspring
QueueBinding[] bindings() default {};springboot
2 QueueBinding.net
/**
* @return the queue.
*/
Queue value();code
/**
* @return the exchange.
*/
Exchange exchange();blog