Boost Your Java Persistence with MyBatis Generator GUI: Features & Quick Start
Discover the MyBatis Generator GUI tool that streamlines Java POJO and mapping file creation, outlines its six key features, system requirements, and three easy startup methods—including self‑build, IDE launch, and native packaging—so you can quickly generate MyBatis code.
With the Chinese New Year approaching, this article introduces a GUI tool for MyBatis that simplifies the generation of Java POJO files and database mapping files.
mybatis-generator-gui is built on MyBatis Generator and provides a visual interface for rapid code creation.
Key Features
Easy to use: Follow guided steps to generate code without dealing with complex XML configuration.
Minimal operations: Save common database connections and generator settings for one‑click code generation.
Rich plugin support: Includes many commonly used plugins out of the box.
Remote access: Supports OverSSH to connect to databases behind corporate firewalls.
Comprehensive comments: Generates Java entity comments from database column remarks, with options to exclude unwanted comments.
Broad compatibility: Works with MySQL, MySQL8, Oracle, PostgreSQL, SQL Server and other major databases.
Runtime Requirements
JDK 8 (version 1.8.0.60 or higher)
All JDK 11 versions are also supported
Startup Methods
Self‑build Clone the repository and run the following commands:
cd mybatis-generator-gui
mvn jfx:jar
cd target/jfx/app/
java -jar mybatis-generator-gui.jarIDE launch Open the project in IDEA and run the class com.zzg.mybatis.generator.MainUI, ensuring the JDK version matches.
Quick native launch Package the application as a native executable and run it directly. Example Maven command:
#<icon>${project.basedir}/package/windows/mybatis-generator-gui.ico</icon> for Windows
#<icon>${project.basedir}/package/macosx/mybatis-generator-gui.icns</icon> for macOS
mvn jfx:nativeNote: Windows native packaging requires WiXToolset 3+; the packaged JRE makes the installer around 100 MB per platform. The generated installers are located in target/jfx/native.
Below are screenshots of the tool in action:
Give the tool a try during the holiday and explore its capabilities.
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.
Programmer DD
A tinkering programmer and author of "Spring Cloud Microservices in Action"
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.
