Skip to content

Commit 7cb8d35

Browse files
committed
Bump spring boot to version 4.0.2
1 parent 0310021 commit 7cb8d35

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

batch-rest-repository/README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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")

batch-rest-repository/src/main/java/zin/rashidi/boot/batch/rest/user/UserJobConfiguration.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package zin.rashidi.boot.batch.rest.user;
22

3-
import java.net.MalformedURLException;
4-
53
import org.springframework.batch.core.job.Job;
64
import org.springframework.batch.core.job.builder.JobBuilder;
75
import org.springframework.batch.core.repository.JobRepository;
@@ -17,16 +15,17 @@
1715
import org.springframework.core.io.UrlResource;
1816
import org.springframework.data.mongodb.core.MongoOperations;
1917
import 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
2726
class 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;

batch-skip-step/src/main/java/zin/rashidi/boot/batch/user/UserJobConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package zin.rashidi.boot.batch.user;
22

3-
import tools.jackson.databind.ObjectMapper;
43
import org.springframework.batch.core.job.Job;
54
import org.springframework.batch.core.job.builder.JobBuilder;
65
import org.springframework.batch.core.repository.JobRepository;
@@ -16,6 +15,7 @@
1615
import org.springframework.context.annotation.Configuration;
1716
import org.springframework.core.io.ClassPathResource;
1817
import org.springframework.transaction.PlatformTransactionManager;
18+
import tools.jackson.databind.json.JsonMapper;
1919

2020
import javax.sql.DataSource;
2121

@@ -25,7 +25,7 @@
2525
@Configuration
2626
class 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);

0 commit comments

Comments
 (0)