rabbitmq消费者报错
接手前同事项目 新加一个queue 报错 No available channels
rabbitmq配置
spring:
rabbitmq:
cache:
channel:
size: 24
原因:项目指定的concurrency总数已经 24个
@RabbitListener(queues = {"${mq.queue.name}"}, concurrency = "8")
解决:24加大
rabbitmq消费者报错
接手前同事项目 新加一个queue 报错 No available channels
rabbitmq配置
spring:
rabbitmq:
cache:
channel:
size: 24
原因:项目指定的concurrency总数已经 24个
@RabbitListener(queues = {"${mq.queue.name}"}, concurrency = "8")
解决:24加大