29 lines
1.1 KiB
YAML
29 lines
1.1 KiB
YAML
|
server:
|
|||
|
port: 8009
|
|||
|
spring:
|
|||
|
rabbitmq:
|
|||
|
# 如果是rabbitmq+haproxy+keepalived集群 ,,那么192.168.0.176是haproxy代理的地址(严格来说是keepalived的vip)
|
|||
|
addresses: 192.168.0.176:5672
|
|||
|
username: cdte
|
|||
|
password: cdte
|
|||
|
virtual-host: cdte
|
|||
|
connection-timeout: 15000
|
|||
|
publisher-confirm-type: correlated
|
|||
|
publisher-returns: true
|
|||
|
template:
|
|||
|
mandatory: true
|
|||
|
listener:
|
|||
|
simple:
|
|||
|
acknowledge-mode: manual
|
|||
|
concurrency: 1
|
|||
|
max-concurrency: 10
|
|||
|
prefetch: 5
|
|||
|
|
|||
|
#================重试机制 开始
|
|||
|
#retry:
|
|||
|
#max-attempts: 3 #最大重试次数
|
|||
|
#enabled: true #是否开启消费者重试(为false时关闭消费者重试,这时消费端代码异常会一直重复收到消息)
|
|||
|
#initial-interval: 2000 #重试间隔时间(单位毫秒)
|
|||
|
#max-interval: 10000 # 重试最大间隔时间
|
|||
|
#multiplier: 2 # 间隔时间乘子,间隔时间*乘子=下一次的间隔时间,最大不能超过设置的最大间隔时间
|
|||
|
#================重试机制 结束
|