RabbitMQ 配置属性
如何查看SpringBoot属性配置
查看官方文档:属性配置
https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html
基础信息
1 2 3 4 5 6 7 8 9 10
| spring.rabbitmq.host: spring.rabbitmq.port: spring.rabbitmq.username: spring.rabbitmq.password: spring.rabbitmq.virtual-host: spring.rabbitmq.addresses: spring.rabbitmq.requested-heartbeat: spring.rabbitmq.publisher-confirms: spring.rabbitmq.publisher-returns: spring.rabbitmq.connection-timeout:
|
SSL
1 2 3 4 5 6 7 8 9
| spring.rabbitmq.ssl.enabled: spring.rabbitmq.ssl.key-store: spring.rabbitmq.ssl.key-store-password: spring.rabbitmq.ssl.trust-store: spring.rabbitmq.ssl.trust-store-password: spring.rabbitmq.ssl.trust-store-type: JKS spring.rabbitmq.ssl.algorithm: spring.rabbitmq.ssl.validate-server-certificate: true spring.rabbitmq.ssl.verify-hostname:
|
缓存cache
1 2 3 4
| spring.rabbitmq.cache.channel.size: spring.rabbitmq.cache.channel.checkout-timeout: spring.rabbitmq.cache.connection.size: spring.rabbitmq.cache.connection.mode=channel:
|
Listener 侦听器(消费者)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| spring.rabbitmq.listener.type=simple:
spring.rabbitmq.listener.simple.auto-startup: true spring.rabbitmq.listener.simple.acknowledge-mode: spring.rabbitmq.listener.simple.concurrency: spring.rabbitmq.listener.simple.max-concurrency:
spring.rabbitmq.listener.simple.prefetch: spring.rabbitmq.listener.simple.transaction-size: spring.rabbitmq.listener.simple.default-requeue-rejected: spring.rabbitmq.listener.simple.missing-queues-fatal: spring.rabbitmq.listener.simple.idle-event-interval: spring.rabbitmq.listener.simple.retry.enabled: false spring.rabbitmq.listener.simple.retry.max-attempts: 3 spring.rabbitmq.listener.simple.retry.max-interval: 10000ms spring.rabbitmq.listener.simple.retry.initial-interval: 1000ms spring.rabbitmq.listener.simple.retry.multiplier: 1 spring.rabbitmq.listener.simple.retry.stateless: true
spring.rabbitmq.listener.direct.acknowledge-mode: spring.rabbitmq.listener.direct.auto-startup: true spring.rabbitmq.listener.direct.consumers-per-queue: spring.rabbitmq.listener.direct.default-requeue-rejected: spring.rabbitmq.listener.direct.idle-event-interval: spring.rabbitmq.listener.direct.missing-queues-fatal: false spring.rabbitmq.listener.direct.prefetch: spring.rabbitmq.listener.direct.retry.enabled: false spring.rabbitmq.listener.direct.retry.initial-interval: 1000ms spring.rabbitmq.listener.direct.retry.max-attempts: 3 spring.rabbitmq.listener.direct.retry.max-interval: 10000ms spring.rabbitmq.listener.direct.retry.multiplier: 1 spring.rabbitmq.listener.direct.retry.stateless: true
|
Template
1 2 3 4 5 6 7 8
| spring.rabbitmq.template.mandatory: spring.rabbitmq.template.receive-timeout: spring.rabbitmq.template.reply-timeout: spring.rabbitmq.template.retry.enabled: false spring.rabbitmq.template.retry.max-attempts: 3 spring.rabbitmq.template.retry.initial-interva: 1000msl spring.rabbitmq.template.retry.multiplier: 1 spring.rabbitmq.template.retry.max-interval: 10000
|