使用 Docker 安装
- 拉取 PlantUML 的 Docker 镜像
1 | docker pull plantuml/plantuml-server:jetty |
- 运行 PlantUML 服务器容器
1 | docker run -d -p 8080:8080 plantuml/plantuml-server:jetty |
- 访问 PlantUML 服务器
- 通过浏览器访问 PlantUML 服务器,网址:http://localhost:8080/
时序图
注释信息
note left
1 | @startuml |
note right
1 | @startuml |
end note (多行注释)
1 | @startuml |
对消息序列编号
autonumber
1 | @startuml |
autonumber inc
- 要增加第一个数字,请使用:autonumber inc A 。
- 要增加第二位数字,请使用:autonumber inc B 。
1 | @startuml |
autonumber stop
- 停止自动编号