Skip to content

Commit f4ab2ef

Browse files
committed
update spring batch to v6
1 parent 7596989 commit f4ab2ef

14 files changed

+36
-34
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
<groupId>org.mybatis</groupId>
3131
<artifactId>mybatis-spring</artifactId>
32-
<version>3.0.6-SNAPSHOT</version>
32+
<version>4.0.0-SNAPSHOT</version>
3333

3434
<name>mybatis-spring</name>
3535
<description>An easy-to-use Spring bridge for MyBatis sql mapping framework.</description>
@@ -116,7 +116,7 @@
116116
<mybatis.version>3.5.19</mybatis.version>
117117
<spring.version>7.0.0</spring.version>
118118
<spring-boot.version>3.5.7</spring-boot.version>
119-
<spring-batch.version>5.2.4</spring-batch.version>
119+
<spring-batch.version>6.0.0</spring-batch.version>
120120
<module.name>org.mybatis.spring</module.name>
121121

122122
<junit.version>6.0.1</junit.version>

src/main/java/org/mybatis/spring/batch/MyBatisBatchItemWriter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2024 the original author or authors.
2+
* Copyright 2010-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,8 +24,8 @@
2424
import org.mybatis.logging.Logger;
2525
import org.mybatis.logging.LoggerFactory;
2626
import org.mybatis.spring.SqlSessionTemplate;
27-
import org.springframework.batch.item.Chunk;
28-
import org.springframework.batch.item.ItemWriter;
27+
import org.springframework.batch.infrastructure.item.Chunk;
28+
import org.springframework.batch.infrastructure.item.ItemWriter;
2929
import org.springframework.beans.factory.InitializingBean;
3030
import org.springframework.core.convert.converter.Converter;
3131
import org.springframework.dao.EmptyResultDataAccessException;

src/main/java/org/mybatis/spring/batch/MyBatisCursorItemReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 the original author or authors.
2+
* Copyright 2010-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@
2828
import org.apache.ibatis.session.ExecutorType;
2929
import org.apache.ibatis.session.SqlSession;
3030
import org.apache.ibatis.session.SqlSessionFactory;
31-
import org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader;
31+
import org.springframework.batch.infrastructure.item.support.AbstractItemCountingItemStreamItemReader;
3232
import org.springframework.beans.factory.InitializingBean;
3333

3434
/**

src/main/java/org/mybatis/spring/batch/MyBatisPagingItemReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 the original author or authors.
2+
* Copyright 2010-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@
2828
import org.apache.ibatis.session.SqlSession;
2929
import org.apache.ibatis.session.SqlSessionFactory;
3030
import org.mybatis.spring.SqlSessionTemplate;
31-
import org.springframework.batch.item.database.AbstractPagingItemReader;
31+
import org.springframework.batch.infrastructure.item.database.AbstractPagingItemReader;
3232

3333
/**
3434
* {@code org.springframework.batch.item.ItemReader} for reading database records using MyBatis in a paging fashion.

src/test/java/org/mybatis/spring/batch/MyBatisBatchItemWriterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2024 the original author or authors.
2+
* Copyright 2010-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -37,7 +37,7 @@
3737
import org.mockito.MockitoAnnotations;
3838
import org.mybatis.spring.SqlSessionTemplate;
3939
import org.mybatis.spring.batch.domain.Employee;
40-
import org.springframework.batch.item.Chunk;
40+
import org.springframework.batch.infrastructure.item.Chunk;
4141
import org.springframework.dao.EmptyResultDataAccessException;
4242
import org.springframework.dao.InvalidDataAccessResourceUsageException;
4343

src/test/java/org/mybatis/spring/batch/MyBatisCursorItemReaderTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2024 the original author or authors.
2+
* Copyright 2010-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -31,8 +31,8 @@
3131
import org.mockito.Mock;
3232
import org.mockito.Mockito;
3333
import org.mockito.MockitoAnnotations;
34-
import org.springframework.batch.item.ExecutionContext;
35-
import org.springframework.batch.item.ItemStreamException;
34+
import org.springframework.batch.infrastructure.item.ExecutionContext;
35+
import org.springframework.batch.infrastructure.item.ItemStreamException;
3636

3737
/**
3838
* Tests for {@link MyBatisCursorItemReader}.

src/test/java/org/mybatis/spring/batch/SpringBatchTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2024 the original author or authors.
2+
* Copyright 2010-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
2020
import org.apache.ibatis.session.SqlSession;
2121
import org.junit.jupiter.api.Test;
2222
import org.mybatis.spring.batch.domain.Employee;
23-
import org.springframework.batch.item.Chunk;
23+
import org.springframework.batch.infrastructure.item.Chunk;
2424
import org.springframework.beans.factory.annotation.Autowired;
2525
import org.springframework.beans.factory.annotation.Qualifier;
2626
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

src/test/java/org/mybatis/spring/batch/builder/MyBatisBatchItemWriterBuilderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2024 the original author or authors.
2+
* Copyright 2010-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,7 +38,7 @@
3838
import org.mockito.Mockito;
3939
import org.mockito.MockitoAnnotations;
4040
import org.mybatis.spring.SqlSessionTemplate;
41-
import org.springframework.batch.item.Chunk;
41+
import org.springframework.batch.infrastructure.item.Chunk;
4242

4343
/**
4444
* Tests for {@link MyBatisBatchItemWriterBuilder}.

src/test/java/org/mybatis/spring/batch/builder/MyBatisCursorItemReaderBuilderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2024 the original author or authors.
2+
* Copyright 2010-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -31,7 +31,7 @@
3131
import org.mockito.Mock;
3232
import org.mockito.Mockito;
3333
import org.mockito.MockitoAnnotations;
34-
import org.springframework.batch.item.ExecutionContext;
34+
import org.springframework.batch.infrastructure.item.ExecutionContext;
3535

3636
/**
3737
* Tests for {@link MyBatisCursorItemReaderBuilder}.

src/test/java/org/mybatis/spring/batch/builder/MyBatisPagingItemReaderBuilderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2024 the original author or authors.
2+
* Copyright 2010-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -35,7 +35,7 @@
3535
import org.mockito.Mock;
3636
import org.mockito.Mockito;
3737
import org.mockito.MockitoAnnotations;
38-
import org.springframework.batch.item.ExecutionContext;
38+
import org.springframework.batch.infrastructure.item.ExecutionContext;
3939

4040
/**
4141
* Tests for {@link MyBatisPagingItemReaderBuilder}.

0 commit comments

Comments
 (0)