EasyFK Generator · IDEA Plugin & CLI

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.

8–15 Standard Classes per Table
IDEA Plugin + CLI Dual Mode
22+ Mainstream Databases
4 Switchable Architectures
GENERATOR VS PURE AI · USE THE RIGHT TOOL

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.

DIMENSION01Architecture
Generator (100% deterministic output)Pure AI (probabilistic / inconsistent)
01

Multi-Module Architecture Complexity

ACTIVE
[Pure AI]When cross-module dependencies, dual RPC (Cloud + Dubbo), AutoConfiguration, and multi-env configs intertwine, LLMs hit context limits and introduce missing configs or circular dependencies.
[EasyFK Generator]Ships with 4 production-proven architecture topologies — 8 submodules, package boundaries, and auto-configuration files land accurately on the first run.
02

Prompt Overhead & Output Consistency

ACTIVE
03

Generation Speed & Wait Time

ACTIVE
04

Token Cost & Compute Spend

ACTIVE
05

Engineering Determinism (No Roulette)

ACTIVE
06

Division of Labor (Right Tool for the Job)

ACTIVE

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.

DimensionMyBatis-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 · MP DB DRIVER ONLY, 100% CUSTOM LAYERS

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.

Template Engine
60+ Freemarker
ORM Support
MP / Flex / JPA
Build Systems
Maven & Gradle
Dual PRD Mode
Client / BMS Split

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.

Read the full handbook (setup, config & CLI reference)
JetBrains Marketplace (#30796)
01
[Project Config]·One-click SINGLE / MICRO_PRD / MICROSERVICE / SMART

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
02
[Model Config]·Auto JDBC metadata parsing · Multi-prefix stripping

Connect DB & Import Tables Instantly

03
[Code Config]·Shortcut Ctrl + Alt + Z · Auto-saved to generator.yml

Step-by-Step or Full-Stack Generation

Shortcut:Ctrl + Alt + Z|Menu: File → New → EasyFK Project
IntelliJ IDEA — EasyFK Generator Plugin
EasyFK Generator IDEA Plugin - Project Config
Previewing: Project Config — One-click SINGLE / MICRO_PRD / MICROSERVICE / SMARTSearch "EasyFK Generator" in Marketplace

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.

Flagship · Dual-Protocol AdaptiveBest for: Large enterprise platforms, multi-protocol interoperability, seamless monolith-to-microservice switching

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.

project-type: smart | prd-type: separation
M1
my-app-api
Unified contracts & transfer objects
  • IProductApi.java
  • ProductDto.java
  • ProductParam.java
  • ProductReq.java
  • ProductEditReq.java
  • ProductResp.java
M2
my-app-server
Domain core & persistence layer
  • Product.java (Entity)
  • ProductMapper.java + .xml
  • IProductRepository + Impl
  • IProductService + Impl
  • ProductApiServerImpl.java
  • MyappServerConfig.java
M3
my-app-remote (4 submodules)
Spring Cloud + Dubbo dual channels
  • cloud-api / IProductRemote + ProductApiScImpl
  • cloud-provider / ProductRemoteImpl
  • dubbo-api / IProductRemote + ProductApiDubboImpl
  • dubbo-provider / ProductRemoteImpl
M4
my-app-prd (client + bms)
Separated Client & BMS gateway layer
  • prd-client / ProductController.java
  • prd-bms / ProductBmsController.java
ANNOTATION-AWARE & SAFE STRATEGY

Annotation-Aware Generation & Safe Incremental Strategy

Strictly separates generated files into schema-synced (force refresh) and custom-safe (never overwrite).

Generated Layer Inspector — Product.java
Overwrite policy: Force Refresh (delAndCreateFile)
GENERATED FILES (1 TABLE → 15+ CLASSES)
@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;
}
Freemarker Engine · UTF-8 · Auto-Mapped from JDBC MetadataReady to compile
FROM DATABASE TO PRODUCTION IN SECONDS

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.