In an attempt to improve PlantUML documentation...
Wiki Toc Recent changes View page history Add new chapter Reorder page Raw
![]() |
![]() |
假如您和我一样也是个急性子 :-)尝试 PlantUML 最简单快捷的方法就是使用在线编辑服务. 例如, 访问 online server. |
PlantUML for the impatientThe easiest way to test PlantUML is in an online solution that has PlantUML embedded, such as our online server. |
本地安装和使用, 其实也相当简单哦当您对PlantUML有了基本的了解, 就可以在本地安装和使用PlantUML了. 如果安装和使用中遇到任何问题,可以先尝试在这里找找答案(FAQ) 软件要求:
|
Local installationAfter testing, you may want to install PlantUML locally. You need these things to run PlantUML:
|
Run PlantUML from the command line双击 plantuml.jar 文件, 启动 plantUML界面. 可以点击"Change Directory"按钮 来重新指定工作目录. 保持界面处于打开状态,不要关闭. 这时候,就可以尝试绘制您的第一个本地UML图了. 可以使用任何您喜欢的文本工具, 例如, 在工作目录中建立一个sequenceDiagram.txt , 内容如下:
PlantUML 会扫描和检测工作目录中的文件修改, 并且自动生成UML图像文件, 例如 sequenceDiagram.png .
当然 PlantUML 也可以通过命令行的方式来执行
png图像文件中的UML图, 效果还是很不错呢!! ^_^ |
Run PlantUML from the command lineUse PlantUML's command line syntax to include it in your own scripts or documentation tools.
2. Run (or have your software call) PlantUML, using sequenceDiagram.txt as input. The output is an image, which either appears in the other software, or is written to an image file on disk.For example:
This outputs your sequence diagram to a file called sequenceDiagram.png .
|