当前位置:网站首页>使用IDEA画结构图
使用IDEA画结构图
2022-06-26 02:19:00 【chenweifu365】
之前想使用IDEA的markdown插件与graphviz直接画图的,结果中文乱码怎么也搞不定,最终还是使用plantuml,搞定了中文乱码。
本教程最终使用IDEA画结构图,依赖plantuml。

先提供几个可能用到的链接:
plantuml在线画图:http://www.plantuml.com/plantuml
graphviz官网:http://www.graphviz.org
graphviz在线画图:http://magjac.com/graphviz-visual-editor/
操作步骤
一、安装plantuml插件
首先安装plantuml插件,安装完之后,重启后再设置中可以找到如下内容:

二、配置使用远端渲染

勾选remote rending即可,但使用此项会使用网络渲染,不建议,等找到本地渲染不乱码的方式时会更新教程
默认配置是使用本地渲染,需要下载graphviz,并制定本地位置。但由于中文乱码问题调不好,暂时改用远端渲染。
默认配置如下图(我这里已经选好了本地的graphviz的路径):

三、创建文件,并渲染
1) 新建plantuml文件
2) 选择文件类型

这里可以选择各种UML,没什么区别吗,但它会给你默认的样例语法,比较友好。实验的话随便选一个就好
3) 粘入以下代码,即可得到文章开头的图
@startuml
graph room {
陈岩石--沙瑞金;
陈岩石--陈海;
陈岩石--陈阳;
沙瑞金--李达康;
沙瑞金--高育良;
沙瑞金--季昌明;
李达康--赵东来;
高小琴--祁同伟;
祁同伟--陈海;
祁同伟--陈阳;
祁同伟--侯亮平;
侯亮平--蔡成功;
侯亮平--季昌明;
侯亮平--钟小艾;
高育良--侯亮平;
高育良--吴慧芬;
高育良--高小凤;
赵立春--赵瑞龙;
赵立春--李达康;
赵立春--高育良;
}
@enduml
边栏推荐
- Arthas(阿尔萨斯) 能为你做什么?
- 我在中山,到哪里开户比较好?网上开户是否安全么?
- [solution] cmake was unable to find a build program corresponding to "UNIX makefiles"
- DF reports an error stale file handle
- Share some remote office experience in Intranet operation | community essay solicitation
- Thirty ninth step
- 【系统架构】-如何评估软件架构
- Is it safe to trade stocks with a compass? How does the compass trade stocks? Do you need to open an account
- 程序员的八年工资变动,令网友羡慕不已:你一个月顶我一年工资
- 2022年挖财商学院证券开户安全嘛?
猜你喜欢

IPhone 13 screen stuck black, unable to shut down? How to solve

如何提词条

Audio video and CPU architecture

Redis Lua sandbox bypass command execution (cve-2022-0543)

High availability in Internet three highs (high concurrency, high performance and high availability)

音视频与CPU架构

【解决】联想拯救者vmware启动虚拟机蓝屏重启问题

Fresh graduates talk about their graduation stories

【机器学习】基于多元时间序列对高考预测分析案例

The programmer's eight-year salary change has made netizens envious: you pay me one year's salary per month
随机推荐
OpenAPI 3.0 specification - Food Guide
OpenAPI 3.0 specification - Food Guide
P2483-[模板]k短路/[SDOI2010]魔法猪学院【主席树,堆】
Redis classic 20 questions
The difference between like,%, - in database query SQL
小 P 周刊 Vol.10
Camtasia 2022 new ultra clear recording computer video
Explain the JVM clearly at one time and don't be asked by the interviewer again
The "more" option of Spreadtrum platform dearmcamera2 is removed
浅谈虚拟内存与项目开发中的OOM问题
R language Markov chain Monte Carlo: practical introduction
Oracle练习
Add console programs in UE
[machinetranslation] - Calculation of Bleu value
Camtasia 2022 nouvelle vidéo d'ordinateur d'enregistrement ultra - clair
scrapy返回400
Additional: brief description of hikaricp connection pool; (I didn't go deep into it, but I had a basic understanding of hikaricp connection pool)
Install development cross process communication
UE5全局光照系统Lumen解析与优化
如何提词条