@RabbitListner
能够在@SendTo
的支持下接收和回复:https://docs.spring.io/spring-amqp/reference/amqp/receiving-messages/async-annotation-driven/reply.html
RabbitTempalte
有一个像sendAndReceive()
这样的API来执行请求-回复同步操作:https://docs.spring.io/spring-amqp/reference/amqp/request-reply.html
那么,让我们看看这是否对您有帮助!