MapPeek
MapPeek detects the Map request and response fields of Java endpoints and turns them into API documentation your frontend can use right away.
Install in
Standard documentation tools render Map<String, Object> as an empty object, so the frontend sees no fields at all.
MapPeek extracts the fields straight from source code, lets you confirm them inside the IDE, and exports in one click:
- Understands
map.putliterals, constant keys andMap.of, including nested Maps andList<Map> - Expands entity / DTO / VO / record parameters and return types, reading
@Schema,@ApiModelProperty, JavaDoc and validation annotations, with getter fallback - Resolves MyBatis column aliases from both
@Selectannotations and XML mappers - Reads
@Operation,@ApiOperation,@Tagand custom annotations to fill endpoint titles and groups - Edit field descriptions directly in the tool window with live preview; saving regenerates the docs
- Copy standard JSON Schema or OpenAPI 3.0 in one click and import it into Apifox / YApi / Postman
Source code is only read: no compilation, no container startup, no changes to business files. The only write is the .mappeek directory in the project root.
中文
MapPeek 自动识别 Java 接口里的 Map 入参与出参,生成可直接交付给前端的接口文档。
标准文档工具遇到 Map<String, Object> 只能渲染成空对象,前端看不到任何字段。
MapPeek 直接从源码提取字段,在 IDE 内确认后一键导出:
- 识别
map.put字面量、常量 key、Map.of,支持嵌套 Map 与List<Map> - 参数或返回值是实体 / DTO / VO / record 时自动展开字段,读取
@Schema、@ApiModelProperty、JavaDoc 与校验注解,字段无注解时回退到 getter - 解析 MyBatis 列别名,覆盖
@Select注解与 XML mapper - 识别
@Operation、@ApiOperation、@Tag与自定义注解,自动填充接口标题与分组 - 工具窗口内直接编辑字段说明,实时预览,保存即重新生成文档
- 一键复制标准 JSON Schema 或 OpenAPI 3.0,可直接导入 Apifox / YApi / Postman
只读取源码,不编译、不启动容器、不修改业务文件。唯一写入是项目根目录下的 .mappeek。
Written by Joobi from the project's own listing. See the source page
- 移除弃用与内部 API 调用,适配 IntelliJ IDEA 2026.x,插件验证器结果 Compatible(0 弃用 / 0 内部 API)
- 修复扫描时报「插件安装目录下缺少 lib/mappeek.jar」的问题,改为多路径定位,兼容 zip 分发包与自定义插件目录
- 兼容 Java 20+,改用 URI 解析插件路径,去掉已弃用的 URL 构造器
English
MapPeek 0.1.4- Removed deprecated and internal API usages; compatible with IntelliJ IDEA 2026.x (Plugin Verifier: Compatible, 0 deprecated / 0 internal API)
- Fixed "lib/mappeek.jar is missing from the plugin directory" on scan by resolving the core jar from multiple locations, including zip distributions and custom plugin directories
- Compatible with Java 20+: plugin paths are parsed with URI instead of the deprecated URL constructor
Follow this listing's changes (Atom feed)