spring-batch-tasklet

Spring batch rollbacks the inserts

混江龙づ霸主 提交于 2020-01-06 05:43:05
问题 Configured the below in my project: <batch:no-rollback-exception-classes> <batch:include class="java.sql.SQLException"/> <batch:include class="org.springframework.dao.DuplicateKeyException"/> <batch:include class="java.sql.SQLIntegrityConstraintViolationException"/> </batch:no-rollback-exception-classes> While loading the file, I have duplicate records, but since I have configured org.springframework.dao.DuplicateKeyException under no-rollback-exception-classes , Spring batch should not