spring-cloud-stream
spring-cloud-stream copied to clipboard
How to disabled auto create queue & exchange & bind
https://docs.spring.io/spring-cloud-stream/reference/rabbit/rabbit_overview/existing-destinations.html#:~:text=By%20default%2C%20the%20binder%20will,binding%20name%2C%20if%20not%20provided.
I refer to document to disable SCS auto create queue & exchange & bind function. but it can't work as expected. I check the source code and found that class ConsumerProperties havn't the ralative properties.
SCS version is 4.0.4 Spring boot version is : 3.0.5 Spring cloud version is : 2022.0.4
sorry please ignore, i found the rabbitmq config
rabbit:
default:
consumer:
bindQueue: false
declareExchange: false
producer:
bindQueue: false
declareExchange: false
durable: true
publisherConfirms: true
publisherReturns: true