title: Consuming messages in batches in amazon sqs, alpine sqs spring boot
body: <p>I had configured SQS listener to consume messages in List of Messages but I am only getting a single message at a time and getting error as cannot convert model.StudentData to the instance of <code>java.util.ArrayList&lt;com.amazonaws.services.sqs.model.Message&gt;</code></p>
  
  <p>my code is :-</p>
  
  <pre><code>@SqsListener(value = "${queueName}", deletionPolicy = SqsMessageDeletionPolicy.NEVER)
      public void receiveMessage(final StudentData studentData,
                                 @Header("SenderId") final String senderId, final Acknowledgment acknowledgment) {
  
          // business logic
          acknowledgment.acknowledge();
      }
  
  </code></pre>
  
  <p>Any suggestion on how to configure sqs listener to consume multiple messages</p>
  
  <p>any help will be appreciated </p>