Issue
I'm migrating my application from Spring Boot 2.4 to Spring Boot 2.7, and Spring Cloud to 2021.0.3.
I came across this situation. I am now using spring-cloud-stream package version 3.2.3, looking at the documentation href="https://docs.spring.io/spring-cloud-stream/docs/3.2.3/reference/html/spring-cloud-%20stream-binder-rabbit.html#_rabbitmq_consumer_properties" rel="nofollow noreferrer">here, it has no reference to the spring.cloud.stream.rabbit.bindings.<channelName>.consumer.concurrency property that I use, it is quoted in exclusive and maxConcurrency properties, these in the settings of my application.yml also do not appear.
Is the documentation correct? If so, shouldn't the org.springframework.cloud.stream.binder.ConsumerProperties class be consistent with the documentation?
Solution
spring.cloud.stream.rabbit.bindings..consumer.concurrency
concurrency
is a common property for all binders, it is not rabbitmq specific.
spring.cloud.stream.bindings.<channelName>.consumer.concurrency
Answered By - Gary Russell
Answer Checked By - Pedro (JavaFixing Volunteer)