IDEA插件PlantUML的使用

3,180 阅读1分钟

1. IDEA安装插件PlantUML integration

PlantUML.png

2. PlantUML integration的使用

在文件夹上右击,选择"New"-->"PlantUML File" New PlantUML File.png

New PlantUML File 2.png

输入文件名,选择你要创建的UML图类型,这里选择Sequence,按下回车键 Sequence UML.png

@startuml
'https://plantuml.com/sequence-diagram

autonumber

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

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

其余的UML图的创建也是类似,具体怎么用,还是可以看代码,也不难的