Mac 閰嶇疆 PlantUML

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mac 閰嶇疆 PlantUML相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/%e5%bc%80%e5%8f%91' title='寮€鍙?>寮€鍙?/a>   graphviz   bre   缂栬緫   杩斿洖   缁樺埗   閾炬帴   title   view   

wikipedia锛?/p>

PlantUML 浣跨敤绠€鍗曠殑鍙鏂囨湰鎻忚堪璇彞鏉ョ粯鍒跺浘琛ㄣ€傞渶瑕佹敞鎰忕殑鏄紝瀹冨苟涓嶄細闃绘浣犵粯鍒剁浉浜掔煕鐩剧殑鍥捐〃锛堟瘮濡傦紝鏈変袱涓浉浜掔户鎵跨殑绫伙級锛屾墍浠ヤ笌鍏惰瀹冩槸涓€涓缓妯″伐鍏凤紝涓嶅璇村畠鏄竴涓粯鍥惧伐鍏枫€傦紙鏉ヨ嚜PlantUML瀹樼綉What鈥榮 the goal of PlantUML ?锛?/p>

涓€.鎵€闇€鐜

  • JDK(Java SE Development Kit)
  • graphviz
  • Visual Studio Code(鎴栬€卻ublime, Chrome, eclipse, androidStudio, Intellij...鏇村)

浜?閰嶇疆

1.瀹夎JDK

  • 妫€娴嬫槸鍚﹀凡瀹夎JDK
    缁堢杈撳叆
java -version

娌℃湁瀹夎鐨勮瘽浼氬脊绐?/p>

鎶€鏈浘鐗? src=

鐐瑰嚮鏇村淇℃伅锛岃繘鍏?a href="https://www.oracle.com/technetwork/java/javase/downloads/index.html">JDK涓嬭浇椤?/a>

鎶€鏈浘鐗? src=DOWNLOAD

杩涘叆涓嬭浇椤甸潰

鎶€鏈浘鐗? src=

鐐瑰嚮鎺ュ彈鏉℃锛屽啀鐐瑰嚮銆俤mg鐨勯摼鎺ヤ笅杞?br/>

鐢变簬鏌愪簺缂樻晠Oracle涓嬭浇JDK濂囨參锛屼綘鍙互浣跨敤鍗庝负JDK闀滃儚婧?/a>锛屾壘鍒版渶鏂扮殑鐗堟湰涓嬭浇鍗冲彲

鍏充簬JDK鐜鍙橀噺閰嶇疆鍙互鍙傜収
macOS涓婮DK11瀹夎鍙婄幆澧冨彉閲忛厤缃€荤粨

瀹夎閰嶇疆瀹屾垚鍚庯紝缁堢璺戜竴涓?/p>

java -version

浼氭槸涓嬪浘鐨勬牱瀛?/p>

鎶€鏈浘鐗? src=

2.瀹夎graphviz

graphviz 鏄竴涓紑婧愮殑棰濆浘鐗囨覆鏌撳簱锛屽彲浠ュ皢PlantUML鑴氭湰杞崲鎴愬浘鐗囥€?/p>

缁堢涓緭鍏?/p>

brew install graphviz

鏈夊ソ鍑犱釜渚濊禆鍖呬細涓嬶紝鎵€浠ラ渶瑕佷竴浜涙椂闂达紝鑰愬績绛夊緟

3.VSCode瀹夎plantUML鎻掍欢

  • 鎵撳紑VSCode
  • ?(command) + shift + X鎵撳紑鎵╁睍锛屾悳绱lantUML
  • 閫夋嫨鏄熸渶澶氱殑锛屼竴鑸氨绗竴涓?/li>

鎶€鏈浘鐗? src=

  • install

4.浣跨敤

  • 鏂板缓涓€涓枃浠?/li>
  • 杈撳叆鏍蜂緥
@startuml

title 鏃跺簭鍥?
== 閴存潈闃舵 ==

Alice -> Bob: 璇锋眰
Bob -> Alice: 搴旂瓟

== 鏁版嵁涓婁紶 ==

Alice -> Bob: 涓婁紶鏁版嵁
note left: 杩欐槸鏄剧ず鍦ㄥ乏杈圭殑澶囨敞

Bob --> Canny: 杞氦鏁版嵁
... 涓嶈秴杩?5 绉掗挓 ...
Canny --> Bob: 鐘舵€佽繑鍥?note right: 杩欐槸鏄剧ず鍦ㄥ彸杈圭殑澶囨敞

Bob -> Alice: 鐘舵€佽繑鍥?
== 鐘舵€佹樉绀?==

Alice -> Alice: 缁欒嚜宸卞彂娑堟伅

@enduml

淇濆瓨鏂囦欢涓簍est.wsd

  • alt + D鍙充晶鍗冲彲娓叉煋鍑篣ML鍥?/li>

鎶€鏈浘鐗? src=

涓?鍏朵粬寮€鍙戝伐鍏蜂娇鐢≒lantUML閰嶇疆


END

以上是关于Mac 閰嶇疆 PlantUML的主要内容,如果未能解决你的问题,请参考以下文章

Spring Cloud Alibaba锛堜簩锛?閰嶇疆涓績澶氶」鐩€佸閰嶇疆鏂囦欢銆佸垎鐩綍瀹炵幇

HBase闆嗙兢鎼缓閮ㄥ垎閰嶇疆

redis 閰嶇疆

nginx 閰嶇疆浜岀骇鍩熷悕

CLion 閰嶇疆缂栬瘧鍣?(MinGW)

Nlog閰嶇疆