plantUML安装使用
所属分类 uml
浏览量 1408
根据文本标记语言生成UML图,也可以生成其他类型的图
可以生成PNG, SVG 或 LaTeX 格式的图片. 也可以生成 ASCII艺术图 (只针对时序图).
@startuml
Bob -> Alice : hello
@enduml
直接使用jar生成图片
java -jar plantuml.jar hello.txt
执行完后,在当前目录下生成 hello.png
可以通过web服务来生成图片
演示例子
http://www.plantuml.com/plantuml
直接下载 plantuml.war 部署一个web服务
http://plantuml.com/zh/download
PlantUML Server
You can use PlantUML using the online web service to generate images on-the-fly.
A online demonstration is available at http://www.plantuml.com/plantuml,
but you can also install it on your own JEE web application server.
The big input field is used to enter your diagram description.
You can type in any diagram description, then press the submit button
and the diagram will be displayed below.
It's a good practice to start your diagram by the @startxxx keyword.
The encoded form is a convenient way to share your diagrams with others
because it's shorter than the many lines of a diagram
and it can be easily displayed in a browser using the online PlantUML Server.
For example, SyfFKj2rKt3CoKnELR1Io4ZDoSa70000 is the encoded form of:
@startuml
Bob -> Alice : hello
@enduml
Source code
PlantUML Server is open source, the code is available on GitHub.
https://github.com/plantuml/plantuml-server
https://github.com/plantuml/plantuml
上一篇
下一篇
elasticsearch5.0索引性能优化
elasticsearch5.0搜索性能优化
elasticsearch5.0磁盘使用优化
通过男女关系形象解读大数据技术
elasticsearch5.0索引别名
elasticsearch5.0索引映射管理