Skip to content

Instantly share code, notes, and snippets.

@jonasurbano
Created January 27, 2018 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonasurbano/30d551a92cbd0f5d32363064f52c2d55 to your computer and use it in GitHub Desktop.
Save jonasurbano/30d551a92cbd0f5d32363064f52c2d55 to your computer and use it in GitHub Desktop.
@Bean
public Step step1() {
return stepBuilderFactory.get("step1")
.<Person,Person>chunk(2)
.reader(csvReader())
.writer(writer())
.faultTolerant()
.skipLimit(2)
.skip(FlatFileParseException.class)
.skip(FlatFileFormatException.class)
.skip(IllegalArgumentException.class)
.listener(skipListener())
.build();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment