1. IDEA安装插件PlantUML integration
2. PlantUML integration的使用
在文件夹上右击,选择"New"-->"PlantUML File"
输入文件名,选择你要创建的UML图类型,这里选择Sequence,按下回车键
@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图的创建也是类似,具体怎么用,还是可以看代码,也不难的