```
@PostConstruct
    public void afterPropertiesSet() {
        MQConsumer consumer = mqClient.getConsumer(mqConfig.getInstanceId(), mqConfig.getUserDeleteTopic(), mqConfig.getGroupId(), null);
        Thread thread = new Thread(() -> {
            while (true) {
                try {
                    List<Message> messages = consumer.consumeMessageOrderly(1, 10);
                    if (messages == null || messages.isEmpty()) {
                        System.out.println("Consume Message Failed, no message available!");
                        return;
                    }
                    for (Message message : messages) {
                        System.out.println("Receive message: " + message);
                    }
                    List<String> handles = new ArrayList<>();
                    for (Message message : messages) {
                        handles.add(message.getReceiptHandle());
                    }
                    consumer.ackMessage(handles);
                } catch (Exception e) {
                    e.printStackTrace();
                    consumer.ackMessage();
                }
            }
        });
        thread.start();
    }
```
改成消费失败10次后，丢弃该消息，并继续消费接下来的消息。