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-...