spring rabbitmq怎么关闭消息的自动确认
1个回答
2016-09-03
展开全部
须编程:
<rabbit:listener-container
connection-factory="connectionFactory" concurrency="4"
acknowledge="manual" max-concurrency="4" prefetch="1"
error-handler="errorHandler">
<rabbit:listener ref="generatorConsumer" method="onMessage" queues="${rabbitmq.queue}" />
</rabbit:listener-container>
<rabbit:listener-container
connection-factory="connectionFactory" concurrency="4"
acknowledge="manual" max-concurrency="4" prefetch="1"
error-handler="errorHandler">
<rabbit:listener ref="generatorConsumer" method="onMessage" queues="${rabbitmq.queue}" />
</rabbit:listener-container>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询