RabbitMQ 连接超时配置
spring: rabbitmq: host: localhost port: 5672 username: guest password: guest vhost: / template: receive-timeout: 30000 reply-timeout: 30000 retry: enabled: false listener: direct: retry: enabled: false default-requeue-rejected: true retry: enabled: false
参数解释
receive-timeout: 30000 消费端接收的响应时间
reply-timeout: 30000 发送端等待接收消费端给出return msg的时间 相当于在message同步时,发送并消费成功的时间。