Boost Your MyBatis Workflow in IDEA with MyBatisCodeHelper-Pro – A Complete Guide
This article introduces the MyBatisCodeHelper-Pro IntelliJ IDEA plugin, outlines its popular features such as mapper navigation, @Param generation, XML creation, pagination support, Spring integration, and SQL log conversion, and provides step‑by‑step installation and usage instructions with screenshots.
Overview
After upgrading to IDEA 2026.1, the previously used MyBaitsX plugin became incompatible, so the author switched to MyBatisCodeHelper-Pro, a MyBatis extension for IntelliJ IDEA.
Key Features
Mapper Interface Support : Jump between mapper interfaces and XML files, generate @Param annotations with a single click, and create XML implementations automatically.
XML Hint Support : Auto‑completion for parameters in resultMap, property suggestions for Java fields, and one‑click removal of unused XML nodes.
One‑Click Pagination Generation : Generates pagination queries for both MyBatis‑Plus Page and PageHelper Page styles.
Spring Integration : Recognizes mapper injection in Spring projects, eliminating IDE error markers.
SQL Log Listener : Captures MyBatis runtime logs and converts them into executable SQL statements via a dedicated panel.
Installation
Install the plugin from the IntelliJ IDEA Marketplace by searching for "MyBatisCodeHelper‑Pro". The plugin has been downloaded over 130 k times, indicating broad community adoption.
Usage
After installation, mapper interfaces and XML files display a small bird icon; clicking it jumps between the method and its SQL implementation.
When editing a mapper method, use the context menu to generate the @Param annotation automatically.
Select a method name and invoke the context action to generate an empty XML implementation.
While writing SQL in XML, the plugin offers auto‑completion for parameters declared with @Param.
In resultMap definitions, property names are auto‑completed based on the corresponding Java class fields.
The context menu can generate pagination queries, supporting both MyBatis‑Plus Page and PageHelper Page.
The plugin resolves previous red error markers caused by mapper injection recognition issues.
A MyBatis log panel on the right side converts runtime logs into executable SQL statements.
Project Repository
https://github.com/gejun123456/MyBatisCodeHelper-Pro
macrozheng
Dedicated to Java tech sharing and dissecting top open-source projects. Topics include Spring Boot, Spring Cloud, Docker, Kubernetes and more. Author’s GitHub project “mall” has 50K+ stars.
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.
