spring-cloud-stream icon indicating copy to clipboard operation
spring-cloud-stream copied to clipboard

How to disabled auto create queue & exchange & bind

Open weiro-9-w7 opened this issue 1 year ago • 2 comments

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

weiro-9-w7 avatar Nov 03 '23 03:11 weiro-9-w7

sorry please ignore, i found the rabbitmq config

weiro-9-w7 avatar Nov 03 '23 04:11 weiro-9-w7

  rabbit:
    default:
      consumer:
        bindQueue: false
        declareExchange: false
      producer:
        bindQueue: false
        declareExchange: false
        durable: true
        publisherConfirms: true
        publisherReturns: true

weiro-9-w7 avatar Nov 03 '23 08:11 weiro-9-w7