File tree Expand file tree Collapse file tree
src/main/java/zin/rashidi/boot/batch/rest/user
batch-skip-step/src/main/java/zin/rashidi/boot/batch/user Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class UserJobConfiguration {
5252 private JsonItemReader<User> reader() throws MalformedURLException {
5353 JacksonJsonObjectReader<User> jsonObjectReader = new JacksonJsonObjectReader<>(User.class);
5454
55- jsonObjectReader.setMapper(new ObjectMapper ());
55+ jsonObjectReader.setMapper(new JsonMapper ());
5656
5757 return new JsonItemReaderBuilder<User>()
5858 .name("userReader")
@@ -80,7 +80,7 @@ class UserJobConfiguration {
8080 private JsonItemReader<User> reader() throws MalformedURLException {
8181 JacksonJsonObjectReader<User> jsonObjectReader = new JacksonJsonObjectReader<>(User.class);
8282
83- jsonObjectReader.setMapper(new ObjectMapper ());
83+ jsonObjectReader.setMapper(new JsonMapper ());
8484
8585 return new JsonItemReaderBuilder<User>()
8686 .name("userReader")
Original file line number Diff line number Diff line change 11package zin .rashidi .boot .batch .rest .user ;
22
3- import java .net .MalformedURLException ;
4-
53import org .springframework .batch .core .job .Job ;
64import org .springframework .batch .core .job .builder .JobBuilder ;
75import org .springframework .batch .core .repository .JobRepository ;
1715import org .springframework .core .io .UrlResource ;
1816import org .springframework .data .mongodb .core .MongoOperations ;
1917import org .springframework .transaction .PlatformTransactionManager ;
18+ import tools .jackson .databind .json .JsonMapper ;
2019
21- import tools . jackson . databind . ObjectMapper ;
20+ import java . net . MalformedURLException ;
2221
2322/**
2423 * @author Rashidi Zin
2524 */
2625@ Configuration
2726class UserJobConfiguration {
2827
29- private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper ();
28+ private static final JsonMapper OBJECT_MAPPER = new JsonMapper ();
3029
3130 private final JobRepository jobRepository ;
3231 private final PlatformTransactionManager transactionManager ;
Original file line number Diff line number Diff line change 11package zin .rashidi .boot .batch .user ;
22
3- import tools .jackson .databind .ObjectMapper ;
43import org .springframework .batch .core .job .Job ;
54import org .springframework .batch .core .job .builder .JobBuilder ;
65import org .springframework .batch .core .repository .JobRepository ;
1615import org .springframework .context .annotation .Configuration ;
1716import org .springframework .core .io .ClassPathResource ;
1817import org .springframework .transaction .PlatformTransactionManager ;
18+ import tools .jackson .databind .json .JsonMapper ;
1919
2020import javax .sql .DataSource ;
2121
2525@ Configuration
2626class UserJobConfiguration {
2727
28- private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper ();
28+ private static final JsonMapper OBJECT_MAPPER = new JsonMapper ();
2929
3030 private JsonItemReader <UserFile > reader () {
3131 JacksonJsonObjectReader <UserFile > reader = new JacksonJsonObjectReader <>(UserFile .class );
You can’t perform that action at this time.
0 commit comments