[Spring Batch] Error : java.lang.IllegalStateException: If a skip limit is provided then skippable exceptions must also be specified

If you got error like below.

What should do with is in a message.

If you specify skip-limit in chunk, you also need to specify which exception you want skip.

Below example would be skip when exception has occurred. And skipped only exception which extends java.lang.Exception.







2 thoughts on “[Spring Batch] Error : java.lang.IllegalStateException: If a skip limit is provided then skippable exceptions must also be specified”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.