Created
January 27, 2018 14:49
-
-
Save jonasurbano/30d551a92cbd0f5d32363064f52c2d55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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