与其一张一张手画类图,不如让代码自己生成。这篇整理 5 种常见方案:TypeDoc、JSDoc、Doxygen、SchemaCrawler、Python 自定义 walker。
方案 1:TypeDoc(TypeScript)1npm install --save-dev typedoc
12345// typedoc.json{ "entryPoints&quo...
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 时有一些「每次都要查文档才能想起来」的小技巧。这篇按小功能维度整理 30 条,让你在写图时少走弯路。
1. 节点换行123456@startumlclass "Class\nName" as c1class Class<<Long>> as c2note right of c1 : 多行注释\n也能换行@enduml
\...
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...
把之前所有 PlantUML 知识用到极致 —— 一份完整的电商订单微服务系统,从需求到上线的全套图表。
项目背景假设我们要设计一个电商订单微服务:
订单生命周期:待付款 → 已付款 → 已发货 → 已签收 → 已完成 / 已退款
微服务拆分:订单 / 支付 / 库存 / 用户 / 推荐
数据存储:PostgreSQL + Redis ...
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...
当 plantuml.com 在线服务因为网络抖动/安全策略不可用时,可以自部署 PlantUML 渲染服务。这篇整理三种方案:本地 jar、Docker、企业自建。
三种部署方式
方案
适用
启动时长
plantuml.jar 本地
偶尔用、CI 临时
<2s
Docker 镜像
团队共享/CI 长期
<5s
plantuml-serv...
When plantuml.com’s online service isn’t reliable — flaky network, security policies — self-host the renderer. Three patterns: local jar, Docker, full microservice.
Three deployment patterns
Pa...