Turned out, a drawing tool 10 times faster than Visio came.

Click on the “Java base” above, select “Set as star”

Be a positive person, not a positive waste person!

Update articles every day at 14:00, lose a million bits of hair every day…

Source code boutique column

  • Original | Java 2021 Super God Road, very liver~

  • An open source project with detailed annotations in Chinese

  • RPC framework Dubbo source code analysis

  • Network application framework Netty source code analysis

  • Message middleware RocketMQ source code analysis

  • Database middleware Sharding-JDBC and MyCAT source code analysis

  • Job Scheduling Middleware Elastic-Job Source Code Analysis

  • Distributed transaction middleware TCC-Transaction source code analysis

  • Eureka and Hystrix source code analysis

  • Java Concurrency Source Code

Source: JavaMind

  • What is PlantUml?

  • Advantages of PlantUML

  • idea installs the PlantUML plugin

  • Computer installation graphviz

  • idea configuration graphviz

  • Use plantUML to draw a flowchart

  • other

0f308fdff3910e6184d33f7223b45fca.jpeg

There are always children’s shoes asking, how to draw this flowchart, what tools are used to make this UML class diagram, etc. Today, I recommend an idea plug-in PlantUml to help you quickly complete the drawing.

What is PlantUml

PlantUml is an open source project that supports fast drawing. It defines a complete set of languages for the description of UML diagrams, and generates UML diagrams based on the powerful Graphviz graphics rendering library. The drawn UML diagram can also be exported as a picture, as well as a common vector SVG format file.

Background management system + user applet based on Spring Boot + MyBatis Plus + Vue & amp; Element, supports RBAC dynamic permissions, multi-tenancy, data permissions, workflow, three-party login, payment, SMS, mall and other functions

  • Project address: https://github.com/YunaiV/ruoyi-vue-pro

  • Video tutorial: https://doc.iocoder.cn/video/

Advantages of PlantUML

  • Complete text editing, no need to drag and drop controls, automatically adjust the distance between primitives, simple and beautiful

  • It has nothing to do with the development platform and is not limited by the platform. As long as there is the PlantUML jar package, UML diagrams can be generated

  • Support the integration of multiple text editors and ides, such as idea, eclipse, notepad++, etc.

As a Java coder, idea is usually used as the preferred development tool. We mainly introduce the use of idea

Background management system + user applet based on Spring Cloud Alibaba + Gateway + Nacos + RocketMQ + Vue & amp; Element, supporting RBAC dynamic permissions, multi-tenancy, data permissions, workflow, three-party login, payment, SMS, mall and other functions

  • Project address: https://github.com/YunaiV/yudao-cloud

  • Video tutorial: https://doc.iocoder.cn/video/

idea installs the PlantUML plugin

File -> Settings -> Plugins Search for PlantUML, find PlantUML integration and install it

Computer installation graphviz

download link

https://graphviz.gitlab.io/_pages/Download/windows/graphviz-2.38.msi

Configure environment variables

First add a variable name GRAPHVIZ_HOME, the variable value is the installation path D:\WorkWare\Graphviz2.38 Add %GRAPHVIZ_HOME%\bin under the Path directory, and separate multiple configurations with “;” Configure GRAPHVIZ_DOT, the variable value is %GRAPHVIZ_HOME%\bin\dot.exe

4e68bf48129d08127c05ce757a862b36.jpeg
e5b92e7693f3e10e0f23e7701877e49d.jpeg

Environment variable detection

Open the windows command line, use dot -version to display the following page, which means the configuration is normal

7b637bf8c2f703442a85ffb09be90229.jpeg

idea configuration graphviz

File -> Settings -> Other Settings -> PlantUML

7a915fd032657472e7755111384c6fc2.png

Using plantUML to draw a flowchart

Create a new uml file

fb0b92440f2bacd4fb376ec4f0259d5c.png

Enter test text

@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response

Alice -> Bob: Another authentication Request
Alice <-- Bob: another authentication response
@enduml

The real-time flow chart will be displayed on the right

a84143f42c334bb2af5fa34d3e9ff5ad.png

It is also possible to create a UML class diagram based on the classes written. You can also refer to the method we recommended the day before yesterday: an underestimated function in IDEA, draw the project code into a UML class diagram with one click

e27c167d73af9c2715b5cafb435334bc.jpeg

Other

If you don’t want to install graphviz and want to use it directly, you can download the chrome plug-in PlantUML Viewer, edit the text directly after installation, and display it directly in the browser.

e73f9ee91597d5e07e0bac632c4e8641.png

Welcome to join my knowledge planet, discuss architecture and exchange source code together. How to join, Long press the QR code below:

968dcd95ac82dbd7c6884f82cdd935b8.png

The source code has been updated on Knowledge Planet and the analysis is as follows:

dba4e70b0f2b4a495db12d3c1fd12715.jpeg

314a79c57774f05deba79b20dd31ca63.jpeg

e09a161a00017d81f5fbddbe99c7e24d.jpeg

4dcbc909c846640d3a36129e34f8662e.jpeg

The recently updated series “Introduction to Taro SpringBoot 2.X” has more than 101 articles, covering MyBatis, Redis, MongoDB, ES, sub-database and sub-table, read-write separation, SpringMVC, Webflux, permissions, WebSocket, Dubbo, RabbitMQ, RocketMQ , Kafka, performance testing, etc.

Provides a SpringBoot example with nearly 3W lines of code, and an e-commerce microservice project with more than 6W lines of code.

How to get it: Click “Looking“, follow the official account and reply to 666 to receive, more content will be provided one after another.

If the article is helpful, please read it and forward it.
Thank you for your support (*^__^*)

The knowledge points of the article match the official knowledge files, and you can further learn relevant knowledge. Java skill treeHomepageOverview 108610 people are studying systematically