PlantUML 时序图 基本例子

95 阅读1分钟

基本的例子

序列-> 用于绘制两个参与者之间的信息。参与者不必明确声明。

要有一个点状的箭头,就用-->

也可以用<- 和<-- 。这不会改变绘图,但可能提高可读性。注意,这只适用于顺序图,其他图的规则不同。

plantuml @startuml !include f.umlcn.com/c4.puml

Alice -> Bob: Authentication Request Bob --> Alice: Authentication Response

Alice -> Bob: Another authentication Request Alice <-- Bob: Another authentication Response @enduml

file

umlcn.com

本文由博客一文多发平台 OpenWrite 发布!