title: Spring cloud stream rabbitmq - consumer retries 3 times for all exception
body: <p>I am trying to stop the retires for my spring boot cloud application completely or retry for only specific exceptions</p>
  
  <p>I have tried several ways to completely stop it from retrying 3 times I set the following configuration but even then it retires</p>
  
  <pre><code>spring.cloud.stream.bindings.input.consumer.max-attempts=1
  
  spring.cloud.stream.rabbit.bindings.input.consumer.requeue-rejected=true
  </code></pre>
  
  <p>To retry for specific exceptions I used below code but didn't work out it still tries to retry for exceptions I don't want to</p>
  
  <pre><code>cloud:
        stream:
           rabbit:
              bindings:
                 input:
                    consumer:
                       autoBindDlq: true
                       republishToDlq: true
                       prefix: local-
                       maxAttempts: 3
                       backOffInitialInterval: 1000
                       backOffMaxInterval: 10000
                       backOffMultiplier: 2.0
                       defaultRetryable: true
                       retryableExceptions:
                          com.ss.*: true
                          java.lang.*: false 
  </code></pre>
  
  <p>Any idea on how to make it not retry or retry for specific exceptions</p>