PlantUML defaults to SVG, but actual doc workflows — embedded in README, printed to PDF, dropped into LaTeX — have different format requirements. This article compares every output format, best-fi...
PlantUML 默认输出 SVG,但实际写文档 / 嵌入 README / 印 PDF / 进 LaTeX 都有不同要求。这篇整理所有输出格式的差异、最佳实践、陷阱。
输出格式速查1java -jar plantuml.jar -t<FORMAT> diagram.puml
Flag
输出
用途
-tsvg
SVG
文档 ...
与其一张一张手画类图,不如让代码自己生成。这篇整理 5 种常见方案:TypeDoc、JSDoc、Doxygen、SchemaCrawler、Python 自定义 walker。
方案 1:TypeDoc(TypeScript)1npm install --save-dev typedoc
12345// typedoc.json{ "entryPoints&quo...
写 PlantUML 时有一些「每次都要查文档才能想起来」的小技巧。这篇按小功能维度整理 30 条,让你在写图时少走弯路。
1. 节点换行123456@startumlclass "Class\nName" as c1class Class<<Long>> as c2note right of c1 : 多行注释\n也能换行@enduml
\...
There are PlantUML features you always have to look up in the docs. This article collects 30 micro-features so you stop searching the manual every time.
1. Newlines in node names123456@startumlcl...
把之前所有 PlantUML 知识用到极致 —— 一份完整的电商订单微服务系统,从需求到上线的全套图表。
项目背景假设我们要设计一个电商订单微服务:
订单生命周期:待付款 → 已付款 → 已发货 → 已签收 → 已完成 / 已退款
微服务拆分:订单 / 支付 / 库存 / 用户 / 推荐
数据存储:PostgreSQL + Redis ...
The ultimate exercise of PlantUML — a complete e-commerce order microservice, end to end, from requirements to production, with the full diagram suite.
Project backgroundWe’re designing an e-comm...
Self-hosting PlantUML means rendering attacker-supplied Java code. Two real risks: (1) OOM / arbitrary code execution inside the JVM, (2) hostile payloads burning your container’s CPU. This a...
PlantUML 自部署面临两个安全风险:(1) 渲染器本身会执行 Java 代码,存在 OOM/任意代码执行漏洞;(2) 攻击者上传恶意代码拖垮你的容器。这篇整理 PlantUML 自带的三层安全策略和最佳实践。
三层安全策略PlantUML 自带四种预设,由 PLANTUML_SECURITY_PROFILE 控制:
Profile
启用
适用
LEGACYDI...
Two ways to put PlantUML diagrams into a Hexo blog — server-side pre-render, or client-side live render.
The questionYou have a Hexo blog. You want PlantUML diagrams to show up in your posts. How...