IDEA自帶類圖的生成,但尚未時序圖的生成。在團隊開發中,代碼的交流,有了時序圖會更加的清楚。本文對在MAC環境如何安裝PlantUML進行闡述:ide
地址爲: https://plugins.jetbrains.com...
下載後,咱們將獲得了一個zip包,**不要**解壓。
按command+,
打開參數設置,找到Plugins
點擊:Install plugin form dist(從磁盤安裝)idea
選擇咱們剛剛下載的ZIP文件。而後點擊Apply
,OK
, 按提示重啓IDEA。spa
按command+,
打開參數設置,找到Plugins
,在關鍵字中搜索PlantUML, 並選擇啓用。點擊OK
後,按提示從新啓動idea
插件
PlantUML依賴於Graphviz,按官方的教程使用brew
進行安裝.code
官方教程: http://plantuml.com/graphviz-dot
如下爲官方教程安裝Graphviz的引用orm
You can easily install GraphViz by installing brew on your Mac machine. This could fix issues if you have installed GraphViz as .dmg package.教程
brew install libtool` brew link libtool brew install graphviz brew link --overwrite graphviz
file -> new -> uml seqxxxxx
,效果以下:ip
PlantUML官方文檔: http://plantuml.com/sequence-...