Back to Trending
RepositoryJava
DA

davidfantasy/mybatis-plus-generator-ui

对mybatis-plus-generator进行封装,通过Web UI快速生成兼容Spring boot,mybatis-plus框架的各类业务代码

2.0kstars
484forks
39issues
2views

🖥️ Sinh mã MyBatis-Plus ngay trên giao diện Web

Web UI thay vì cấu hình bằng code — sinh Entity, Mapper, Service, Controller trực tiếp từ database.

mybatis-plus-generator-ui là một lớp bao bọc (wrapper) quanh mybatis-plus-generator, đóng gói toàn bộ quy trình sinh mã nguồn thành giao diện Web tương tác. Dự án giúp developer tạo các file code tương thích với Spring Boot + MyBatis-Plus mà không cần viết cấu hình Generator bằng tay. Hiện tại dự án đã vào giai đoạn bảo trì — tác giả khuyến nghị chuyển sang dùng resource2code cho các dự án mới.

✨ Điểm nổi bật

  • Giao diện Web tương tác: Truy cập http://localhost:8068 để chọn bảng, cấu hình output và sinh code luôn — không cần sửa config trong source.
  • Hỗ trợ đặt tên tùy chỉnh: Triển khai NameConverter để thay đổi quy tắc đặt tên cho Service, Controller và các file sinh ra.
  • Sinh mã từ SQL: Nhập câu truy vấn SQL, hệ thống tự tạo Mapper (Java + XML), DTO và ResultMap tương ứng.
  • Dynamic SQL增强: Tự động nhận diện điều kiện WHERE có tham số động trong SQL, chuyển thành MyBatis dynamic SQL.
  • Template có thể thay thế: 6 loại template mặc định (Entity, Mapper, Service, Controller...), hỗ trợ upload template riêng và inject biến tùy chỉnh qua TemplateVariableInjecter.
  • Đa database: Hỗ trợ hầu hết các database phổ biến — chỉ cần thêm driver và chỉ định driverClassName trong GeneratorConfig.
  • Triển khai độc lập: Từ version 1.4.0, GeneratorServer có thể chạy như một Spring Boot project riêng, phục vụ nhiều dự án cùng lúc.

💡 Vì sao đáng chú ý

Thay vì phải viết và tinh chỉnh hàng chục dòng cấu hình Generator trong code mỗi khi thêm bảng mới, developer chỉ cần mở trình duyệt, chọn bảng cần sinh, điều chỉnh template và nhấn nút. Các cấu hình đã lưu được nhóm theo basePackage trong thư mục user.home/.mybatis-plus-generator-ui, nên mỗi dự án giữ cấu hình riêng biệt.

Dự án đặc biệt phù hợp cho các team đang dùng MyBatis-Plus trong hệ thống Spring Boot, cần sinh nhanh boilerplate code lặp đi lặp lại cho nhiều bảng. Tuy nhiên, do đã vào bảo trì, nên cân nhắc dùng resource2code (cũng do tác giả duy trì) cho dự án mới vì nó hỗ trợ AI辅助 sinh code và custom rule linh hoạt hơn.


#MyBatisPlus #CodeGenerator #SpringBoot #Java #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryJava
baomidou/mybatis-plus

An powerful enhanced toolkit of MyBatis for simplify development

17.5k
Nov 16, 2026
RepositoryJava
geekidea/spring-boot-plus

:fire: Spring-Boot-Plus is an easy-to-use, high-speed, high-efficient,feature-rich, open source spring boot scaffolding. :rocket:

2.5k
Nov 2, 2026
RepositoryJava
macrozheng/mall-tiny

mall-tiny是一款基于SpringBoot+MyBatis-Plus的快速开发脚手架,拥有完整的权限管理功能,可对接Vue前端,开箱即用。

2.1k
Apr 13, 2026
RepositoryRust
rbatis/rbatis

Compile Time Async Dynamic SQL ORM

2.5k
Nov 14, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

473.8k
Nov 22, 2026
RepositoryMarkdown
DigitalPlatDev/FreeDomain

Free domain registration and practical DNS learning resources for everyone.

208.9k
Aug 12, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.9k
Oct 31, 2026
RepositoryTypeScript
openclaw/openclaw

The AI that really does things. Any OS. Any Platform. The lobster way. 🦞

395.0k
Nov 22, 2026
Repository
jwasham/coding-interview-university

A complete computer science study plan to become a software engineer.

364.6k
Nov 7, 2026