123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- spring:
- redis:
- database: 12
- host: 192.168.2.237 # Redis服务器地址
- port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
- password: emrais # Redis服务器连接密码(默认为空)
- jedis:
- pool:
- max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
- max-idle: 5 # 连接池中的最大空闲连接
- max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
- min-idle: 0 # 连接池中的最小空闲连接
- timeout: 20000 # 连接超时时间(毫秒)
- rabbitmq:
- host: 192.168.2.237
- port: 5672
- username: emrais
- password: emrais
- virtual-host: /emrais # 虚拟host
- publisher-confirm-type: correlated # 确认消息已发送到交换机(Exchange) 发送确认
- publisher-returns: true # 确认消息已发送到队列(Queue) 发送回调
- connection-timeout: 4000
- template:
- mandatory: true # 当exchange无法找到任何一个合适的queue时,将消息return给生产者
- receive-timeout: 30000 # 消费端接收的响应时间
- reply-timeout: 30000 # 发送端等待接收消费端给出return msg的时间,相当于在message同步时,发送并消费成功的时间
- retry:
- enabled: true
- max-attempts: 6 # 最大重试次数
- initial-interval: 2000 # 重试初始间隔时间
- multiplier: 2 # 间隔时间乘子,间隔时间*乘子=下一次的间隔时间,最大不能超过设置的最大间隔时间
- max-interval: 64000 # 最大重试时间间隔
- listener:
- simple:
- acknowledge-mode: auto # 自动确认
- auto-startup: true # 是否启动时自动启动容器
- concurrency: 1 # 最小的消费者数量
- max-concurrency: 5 # 最大的消费者数量
- default-requeue-rejected: true # 投递失败时是否重新排队;默认是true(与参数acknowledge-mode有关系)
- retry:
- enabled: true
- max-attempts: 6
- initial-interval: 2000
- multiplier: 2
- max-interval: 64000
- stateless: true # 不论重试是有状态的还是无状态的
- rabbitmq:
- mqtt:
- url: tcp://192.168.2.237:1883
- front-url: ws://192.168.2.237:15675/ws
- defaultTopic: defaultSampleTopic
- swagger.show: true
|