[英]RabbitMQ Exchange not getting created using Spring-Cloud-Stream
[英]Using Spring Cloud Stream with Rabbitmq, with exchange type “headers”
我有這樣配置的項目:
spring:
cloud:
stream:
rabbit:
bindings:
myChannel:
consumer:
prefetch: 3
maxPriority: 10
exchangeType: headers
bindings:
myChannel:
destination: MyChannel
group: my-channel-readers
consumer:
concurrency: 4
max-attempts: 3
binders:
rabbit:
type: rabbit
這確實可以創建正確的Exchange(作為標頭)和Queue,但不會綁定它們。
在添加exchangeType: headers
它創建了以topic
為topic
的交換,並且正確地綁定了隊列。 另外,如果我將其切換為exchangeType: topic
它將正確創建綁定。
我希望將其綁定,並且僅在項目具有/不具有特定標頭的情況下才發送-我該怎么做?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.