配置

1. 安装graphviz
2. 下载plantuml.jar
3. 配置vscode插件: PlantUML, Graphviz Preview

运行

java -jar plantuml.jar -charset UTF-8 sequenceDiagram.txt

Sequence Diagram

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

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