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.

macrozheng
macrozheng
macrozheng
Boost Your MyBatis Workflow in IDEA with MyBatisCodeHelper-Pro – A Complete Guide

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.

Installation screenshot
Installation screenshot

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.

Mapper navigation
Mapper navigation
@Param generation
@Param generation
XML generation
XML generation
SQL auto‑completion
SQL auto‑completion
ResultMap property hints
ResultMap property hints
Pagination generation
Pagination generation
Mapper injection recognition
Mapper injection recognition
SQL log panel
SQL log panel

Project Repository

https://github.com/gejun123456/MyBatisCodeHelper-Pro

SQLBackend DevelopmentSpringMyBatisIntelliJ IDEA
macrozheng
Written by

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.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.