dc/src/main/resources/application.yml

53 lines
1.7 KiB
YAML
Raw Normal View History

2021-08-27 17:43:55 +08:00
server:
port: 8009
2021-09-25 14:25:08 +08:00
# 只有把 springboot 的debug 模式开启slf4j 才会记录日志
#logging:
# level:
# root: debug
#
2021-08-27 17:43:55 +08:00
spring:
rabbitmq:
# 如果是rabbitmq+haproxy+keepalived集群 那么192.168.0.176是haproxy代理的地址严格来说是keepalived的vip
addresses: 192.168.0.176:5672 ## 新版rabbitmq 版本还未测试
#addresses: 172.16.21.133:5672
2021-08-27 17:43:55 +08:00
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 # 间隔时间乘子,间隔时间*乘子=下一次的间隔时间,最大不能超过设置的最大间隔时间
#================重试机制 结束
#influx:
# influxUrl: 'http://192.168.0.170:8086'
# bucket: 'qgs-bucket'
# org: 'qgs'
# token: 'lkBsC27QZr1W50BSPlGxpTqNNpwuUk5uz1dZZRPSPbCG5VmNDDUo8P3UkZIhGWwfJwkuz6ZGZ7Et4_KBaG3gHw=='
influx:
influxUrl: 'http://192.168.0.170:8086'
bucket: 'qgs-bucket'
org: 'qgs'
token: 'lkBsC27QZr1W50BSPlGxpTqNNpwuUk5uz1dZZRPSPbCG5VmNDDUo8P3UkZIhGWwfJwkuz6ZGZ7Et4_KBaG3gHw=='
# /health point
#management:
# health:
# influxdb:
# enabled: true