Standards as Code, Generated by Design
Deterministic in Seconds
Save AI for what matters — stop burning tokens on repetitive project scaffolding and layered boilerplate. EasyFK Generator encodes architect-grade conventions into deterministic templates via the IntelliJ IDEA visual plugin or CLI, producing enterprise project skeletons and full-layer code with zero errors, zero token cost, and zero style drift.
No scaffolding roulette · Zero token cost · Instant deterministic output
GUI config · Table picker · Step-by-step generation (Ctrl+Alt+Z)
IDE-independent · Full build via efg init && efg
SINGLE / MICRO_PRD / MICROSERVICE / SMART
With AI Everywhere, Why Do You Need a Code Generator Even More?
AI is a breakthrough for engineering, yet prompting LLMs to hand-craft standardized project skeletons is slow, costly, and unpredictable. Lock down the foundation in seconds with the generator, and reserve AI for complex business logic.
Multi-Module Architecture Complexity
Prompt Overhead & Output Consistency
Generation Speed & Wait Time
Token Cost & Compute Spend
Engineering Determinism (No Roulette)
Division of Labor (Right Tool for the Job)
The Winning Formula: Use the Code Generator to scaffold zero-error project foundations and contracts in seconds (zero cost, zero drift), then unleash AI + EasyFK Skill on complex domain orchestration.
GENERATOR BENCHMARK · ARCHITECTURAL LEAP
Beyond Single-Table CRUD: A Generational Leap Over Legacy Generators
Only reuses the database connection driver from MyBatis-Plus Generator; all Entity structures, Service / Repository layers, and templates are 100% built in-house by EasyBuild — an architecture-grade engine for multi-module projects, dual-stack RPC, safe incremental sync, and AI CLI workflows.
| Dimension | MyBatis-Plus Generator Native table-level codegen | MyBatisX / EasyCode / Admin Kits Single-table CRUD templates | EasyFK GeneratorArchitecture-Grade MP DB driver only · 100% custom layers |
|---|---|---|---|
01 Project Skeleton & Multi-Module | Not supported; projects and build files must be created manually | Only writes single-table files into an existing project | One-click complete Maven / Gradle multi-module projects (bootstraps, multi-env yml, logging) |
02 Architecture & Microservice RPC | No architecture model; single-project table output only | Fixed monolith or tightly coupled to a specific admin kit | One-click switching across SINGLE / MICRO_PRD / MICROSERVICE / SMART (Cloud + Dubbo) |
03 Per-Table Depth & Layering | Basic Entity / Mapper / Service / Controller stubs | Basic CRUD snippets; DTO / Req / Resp written by hand | 8–15 standard classes per table (DTO / Param / Req / Resp / EditReq / Repository / API / Remote / dual Controllers) |
04 Incremental Sync & Code Safety | Full overwrite or skip; schema changes require manual DTO/Param edits | Re-running risks overwriting custom business logic | Dual strategy: business code is never overwritten; efg -d refreshes DTO / Param on schema changes |
05 Annotation-Driven & RBAC | No uniqueness checks, range queries, or RBAC annotation wiring | Static templates unable to introspect entity business annotations | Parses Entity annotations to generate unique checks, range filters, enable/disable endpoints, and RBAC annotations |
06 AutoConfiguration & Multi-ORM | Locked to MyBatis-Plus with no AutoConfiguration generation | Typically supports only a single ORM framework | Auto-generates Spring Boot AutoConfiguration; supports MyBatis-Plus / Flex / Hibernate |
07 Workflows & AI Integration | Requires writing and running a Java main class inside the project | Tied to IDE UI or a running admin backend | IDEA visual plugin + standalone CLI (efg) sharing one YAML config, callable by AI Skills |
Under the hood, we only reuse the database connection driver from MyBatis-Plus Generator (supporting 22+ databases including MySQL, PostgreSQL, Oracle, Dameng, and Kingbase); all code structures and templates — Entity, Repository, Service, API, Remote, and Controller — are 100% custom-engineered by EasyBuild, not inherited from MyBatis-Plus Generator.
TWO WORKFLOWS · ONE YAML ENGINE
IntelliJ IDEA Plugin & Standalone CLI Dual Engine
Use the IntelliJ IDEA visual plugin for daily point-and-click development, or run the standalone efg CLI for automation and headless workflows — both share the exact same generator.yml.
Visual Project & Architecture Setup
- Supports SINGLE (monolith), MICRO_PRD (gateway), MICROSERVICE, and SMART (multi-stack dual-RPC) project types
- Mix and match Maven / Gradle build tools, MyBatis / Flex / Hibernate ORMs, and Logback / Log4j2 logging
- Choose PRD strategy (NONE / SINGLE / SEPARATION for Client + BMS) and toggle the Auth module in one click
Connect DB & Import Tables Instantly
Step-by-Step or Full-Stack Generation

ARCHITECTURE & LAYER OUTPUT
4 Architecture Blueprints · 15+ Standard Classes per Table
Select a node to inspect the module topology and generated source code for SMART, MICROSERVICE, SINGLE, and MICRO_PRD.
SMART Multi-Stack Microservice
Defines a unified IProductApi contract while generating local Server, Spring Cloud Feign, and Dubbo RPC implementations simultaneously. Controllers code solely against IProductApi, and AutoConfiguration wires the right transport at runtime based on dependencies — zero business code changes when switching architectures.
- IProductApi.java
- ProductDto.java
- ProductParam.java
- ProductReq.java
- ProductEditReq.java
- ProductResp.java
- Product.java (Entity)
- ProductMapper.java + .xml
- IProductRepository + Impl
- IProductService + Impl
- ProductApiServerImpl.java
- MyappServerConfig.java
- cloud-api / IProductRemote + ProductApiScImpl
- cloud-provider / ProductRemoteImpl
- dubbo-api / IProductRemote + ProductApiDubboImpl
- dubbo-provider / ProductRemoteImpl
- prd-client / ProductController.java
- prd-bms / ProductBmsController.java
Annotation-Aware Generation & Safe Incremental Strategy
Strictly separates generated files into schema-synced (force refresh) and custom-safe (never overwrite).
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("product")
@ForbiddenField(value = "forbidden") // Auto-generates enable/disable endpoint in Controller
@AutoMapper(target = ProductDto.class)
public class Product extends BaseMyBatisPlusEntity<Product> {
@PrimaryKey
@TableId(type = IdType.ASSIGN_UUID)
@EntityColumn(comment = "Product ID")
private String productId;
@SingleUniqueField(repetitionMsg = "Product name already exists") // Auto-generates uniqueness check
@EntityColumn(comment = "Product Name")
private String productName;
@CombUniqueField(repetitionMsg = "Duplicate product name in this category", combinationField = "categoryId")
@EntityColumn(comment = "Category ID")
private String categoryId;
@BetweenConditionField // Auto-generates createTimeStart / createTimeEnd in Param
@EntityColumn(comment = "Created At")
private LocalDateTime createTime;
}Turn Architect Designs Directly Into Runnable Code
Lock in standardized project foundations with the code generator, then combine 21+ open-source business modules and EasyFK AI Skills to ship complex business logic at 100x speed.