Skippable exception classes for Spring Batch with java based configuration

前端 未结 2 1399
攒了一身酷
攒了一身酷 2021-02-07 22:39

I configure a step in XML like this:


        
            

        
2条回答
  •  说谎
    说谎 (楼主)
    2021-02-07 23:03

    You need to build up a FaultTolerantStepBuilder using StepBuilder.faultTolerant method.

    return stepBuilder()
      .chunk()
      .faultTolerant()
      .skip(MyException.class)
      .skipLimit(100000)
    .build()
    

提交回复
热议问题