I want java config of below :
`
<step id="step1">
<tasklet>
<chunk reader="itemReader" writer="itemWriter" commit-interval="2"/>
<no-rollback-exception-classes>
<include class="org.springframework.batch.item.validator.ValidationException"/>
</no-rollback-exception-classes>
</tasklet>
</step>
`
<no-rollback-exception-classes> in particular.
Thanks!!!
The equivalent to
no-rollback-exception-classesin Java config is the org.springframework.batch.core.step.builder.FaultTolerantStepBuilder#noRollback method.In your case, it would be something like:
Hope this helps.