org.mybatis:mybatis-spring breaking changes
org.mybatis:mybatis-spring 4.0.0 (November 30, 2025) is its newest release with breaking changes, 5 of them. The first: Updates Spring Framework dependency to version 7 and Spring Batch to version 6 in org.mybatis:mybatis-spring 4.0.0. Every breaking API change we have recorded in org.mybatis:mybatis-spring on Maven Central: 18 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.1.0, released June 27, 2026. Source repository
Packages on Maven Central run on Java. Java end of life dates.
org.mybatis:mybatis-spring 4.0.0 breaking changes
- Behavior changed
The release moves the library onto Spring Framework 7 and Spring Batch 6, so applications must run on those versions of Spring. github.com - Signature changed
org.mybatis.spring.batch.MyBatisBatchItemWriter
Was class MyBatisBatchItemWriter<T> implements org.springframework.batch.item.ItemWriter<T>, org.springframework.beans.factory.InitializingBean; now class MyBatisBatchItemWriter<T> implements... central.sonatype.com - Signature changed
org.mybatis.spring.batch.MyBatisBatchItemWriter.write
Was void write(org.springframework.batch.item.Chunk<? extends T>); now void write(org.springframework.batch.infrastructure.item.Chunk<? extends T>). central.sonatype.com - Signature changed
org.mybatis.spring.batch.MyBatisCursorItemReader
Was class MyBatisCursorItemReader<T> extends org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader<T> implements org.springframework.beans.factory.InitializingBean; now class MyBatisCursorItemReader<T> extends... central.sonatype.com - Signature changed
org.mybatis.spring.batch.MyBatisPagingItemReader
Was class MyBatisPagingItemReader<T> extends org.springframework.batch.item.database.AbstractPagingItemReader<T>; now class MyBatisPagingItemReader<T> extends... central.sonatype.com
org.mybatis:mybatis-spring 3.0.0 breaking changes
- Removed
org.mybatis.spring.annotation.MapperScan.processPropertyPlaceHolders
MapperScan.processPropertyPlaceHolders was removed in org.mybatis:mybatis-spring 3.0.0 central.sonatype.com - Removed
org.mybatis.spring.batch.MyBatisPagingItemReader.doJumpToPage
MyBatisPagingItemReader.doJumpToPage was removed in org.mybatis:mybatis-spring 3.0.0 central.sonatype.com - Removed
org.mybatis.spring.SqlSessionFactoryBean.addMapperLocations
SqlSessionFactoryBean.addMapperLocations was removed in org.mybatis:mybatis-spring 3.0.0 central.sonatype.com - Removed
org.mybatis.spring.SqlSessionFactoryBean.addPlugins
SqlSessionFactoryBean.addPlugins was removed in org.mybatis:mybatis-spring 3.0.0 central.sonatype.com - Removed
org.mybatis.spring.SqlSessionFactoryBean.addScriptingLanguageDrivers
SqlSessionFactoryBean.addScriptingLanguageDrivers was removed in org.mybatis:mybatis-spring 3.0.0 central.sonatype.com - Removed
org.mybatis.spring.SqlSessionFactoryBean.addTypeAliases
SqlSessionFactoryBean.addTypeAliases was removed in org.mybatis:mybatis-spring 3.0.0 central.sonatype.com - Removed
org.mybatis.spring.SqlSessionFactoryBean.addTypeHandlers
SqlSessionFactoryBean.addTypeHandlers was removed in org.mybatis:mybatis-spring 3.0.0 central.sonatype.com - Behavior changed
This release supports Spring Framework 6 / Spring Batch 5 and is not backward compatible with 2.0.x. Users on 2.0.x must review the changes before upgrading. github.com - Behavior changed
The package no longer uses Spring's NestedIOException, which can change exception types thrown from I/O failures. github.com - Behavior changed
MapperScan
MapperScan annotation attributes now use Spring's AliasFor declaration, which can change how attribute aliases resolve. github.com
And 3 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.