如何处理 spring-rabbit 中从我的兔子服务器断开的连接?我需要设置任何特定选项吗?配置如下图:
<rabbit:connection-factory id="connectionFactory" host="${rabbitmq.host:rserver1}" port="${rabbitmq.port:5672}"
username="guest" password="guest" />
<rabbit:template id="amqpTemplate" connection-factory="connectionFactory" />
<rabbit:admin connection-factory="connectionFactory" />
<rabbit:queue name="Q1.${server.name:unknown}" />
<rabbit:queue name="Q2.${server.name:unknown}" />
<rabbit:listener-container connection-factory="connectionFactory">
<rabbit:listener queues="Q2.${server.name:unknown}" ref="q1QueueConsumer" />
<rabbit:listener queues="Q2.${server.name:unknown}" ref="q2QueueConsumer" />
</rabbit:listener-container>
<rabbit:topic-exchange name="Exchange">
<rabbit:bindings>
<rabbit:binding queue="Q1.${server.name:unknown}" pattern="#.Q1.#" />
<rabbit:binding queue="Q2.${server.name:unknown}" pattern="#.Q2.#" />
</rabbit:bindings>
</rabbit:topic-exchange>