rabbitMq/src/main/resources/application.yml

26 lines
566 B
YAML

logging:
pattern:
dateformat: MM-dd HH:mm:ss:SSS
spring:
rabbitmq:
username: root
password: 123456
port: 5672
# host: 192.168.31.140
host: 192.168.2.156
listener:
simple:
prefetch: 1
acknowledge-mode: none # 默认机制
retry:
enabled: true # 开启重试机制
connection-timeout: 1s # 连接延迟
template:
retry:
enabled: true # 重试
multiplier: 2 # 重试次数,发消息不会重试
# publisher-confirm-type: correlated
# publisher-returns: true