What’s New in MyBatis-Plus 3.5.6? Upgrade Guide and Dependency Tips
MyBatis-Plus, an enhanced MyBatis toolkit, simplifies CRUD operations and injects dynamic SQL to boost productivity; this guide outlines its core features, important upgrade notes—including MyBatis 3.5.16 and JSqlParser 4.9 versions—provides a detailed changelog, and shows Maven dependencies for Spring Boot 3.x and 2.x.
MyBatis-Plus is an enhanced toolkit for MyBatis that simplifies CRUD operations and injects single‑table SQL during XML configuration loading, aiming to improve development efficiency and performance.
Demo examples are available at https://gitee.com/baomidou/mybatis-plus-samples and the official documentation at https://baomidou.com/ .
Important upgrade notice: upgrade MyBatis to version 3.5.16 and JSqlParser to version 4.9.
Upgrade log
fix: Resolve errors caused by multi‑layer Service proxy.
fix: Preserve generic type information in Json type handler deserialization.
fix: Correct handling of primitive array in filler processor.
fix: Retain Page method removed in previous version within PageDto class.
fix: Address IllegalSQLInnerInterceptor missing Parenthesis handling.
fix: Fix table/column name wrapping issues in IllegalSQLInnerInterceptor.
fix: Expand params correctly when calling setSql on KtUpdateChainWrapper.
fix: Resolve useGeneratedShortKey configuration failure.
fix: Resolve multiple issues in DataChangeRecorderInnerInterceptor.
feat: Remove automatic escaping for sqlFirst and sqlComment (manual call required if needed).
feat: Change ServiceImpl to abstract class to prevent direct instantiation errors.
feat: Refactor TemplateConfig in code generator; move template disabling and path configuration to concrete implementations.
feat: Support combined annotations.
feat: Add auto‑increment/decrement methods (setIncrBy, setDecrBy) to LambdaUpdateWrapper.
feat: Pass org.apache.ibatis.session.Configuration when retrieving injection methods.
feat: Add switch for auto‑increment primary key compatibility (default false).
feat: Add filler skip mode based on MappedStatement#id.
feat: Add automatic DDL maintenance for SQLite.
feat: Add eqSql method.
feat: Add SQL parsing thread pool.
feat: Log Snowflake ID generator initialization (warn if exceeds 5 seconds).
feat: Upgrade MyBatis to 3.5.16.
feat: Upgrade spring‑cloud‑commons.
feat: Upgrade JSqlParser to 4.9.
test: Add CI on GitHub.
doc: Add update (Wrapper) API documentation for auto‑fill comments.
Spring Boot 3.x dependency
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
<version>3.5.6</version>
</dependency>Spring Boot 2.x dependency
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.6</version>
</dependency>Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Java Architecture Diary
Committed to sharing original, high‑quality technical articles; no fluff or promotional content.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
