PlantUML
maiaimei 2025/4/20
PlantUML是一款开源的UML图绘制工具,支持通过文本来生成图形,使用起来非常高效。它支持多种类型的UML图,包括时序图、类图、对象图、活动图、组件图、部署图、状态图等。
https://pdf.plantuml.net/1.2020.22/PlantUML_Language_Reference_Guide_en.pdf (opens new window)
https://plantuml.com/zh/sequence-diagram (opens new window)
PlantUML导出大图被截取和乱码解决方案:
在https://github.com/plantuml/plantuml/releases (opens new window)下载plantuml.jar,执行以下命令
java -DPLANTUML_LIMIT_SIZE=8192 -jar /path/to/plantuml.jar -charset UTF-8 /path/to/example.puml
1
参数说明:
-DPLANTUML_LIMIT_SIZE参数用于设置图像的宽高。如果图像很大,需要设置-Xml1024m参数。
-charset UTF-8参数用于设定导出图像的编码。