Jump to content
七龙的秘密基地
Search In
  • More options...
Find results that contain...
Find results in...
  • entries
    4
  • comment
    1
  • views
    2,169

Entries in this blog

Springboot rabbitMQ消息队列配置手动确认机制 配置消费者与生产者和死信交换机

在application.yml文件中配置web以及rabbitmq的配置信息 spring: rabbitmq: host: 127.0.0.1 port: 5672 username: root password: 9YoIu # 发送者开启 return 确认机制 publisher-returns: true # 发送者开启 confirm 确认机制 publisher-confirm-type: correlated listener.simple: # 设置消费端手动 ack acknowledge-mode: manual # 是否支持重试 retry: enabled: true 在maven中引入依赖: <!--MQ消息队列--> <dependency> <groupId>org.springframework.boot</groupId&

elstp_gf@foxmail.com

elstp_gf@foxmail.com in Java

×
×
  • Create New...