简介 / IntroductionStereotypes extend class diagram elements with semantic labels, distinguishing roles like “interface”, “service”, “entity”, and “enum” within the same diagram. Both PlantUML a...
简介 / IntroductionStereotype(类型构造型)是在类图元素上附加语义标签的机制,用于区分同一类型的不同角色——如「接口」「服务」「枚举」「实体」。PlantUML 与 Mermaid 都支持在类图中使用 <<stereotype>> 语法,但细节有所不同。本文对比两者的写法与渲染效果。
PlantUML 版123456789101112...
简介 / IntroductionAn Object Diagram records concrete instances and their attribute values at a specific point in time, serving as a structural snapshot of a class diagram. While class diagrams ...
简介 / Introduction对象图(Object Diagram)记录系统在某一运行时刻的具体实例及其属性值,是类图的结构快照。相比类图展示抽象的类型与关系,对象图关注”此时此刻有哪些真实的实例,各自的状态是什么”。PlantUML 有原生的 objectdiagram,Mermaid 则用类图语法近似表达。
PlantUML 版12345678910111213141516...
简介 / IntroductionUse case diagrams model system functional requirements, centering on actors and use cases, with system boundaries and relationships to express business scenarios. This article...
简介 / Introduction用例图(Use Case Diagram)用于描述系统功能需求,以角色(Actor)和用例(Use Case)为核心,辅以系统边界和关系线表达业务场景。本篇对比 PlantUML 与 Mermaid 两种语法的用例图写法。
PlantUML 版12345678910111213141516@startumlleft to right directi...
简介 / IntroductionA deployment diagram visualizes the physical layout of a software system across hardware nodes and the artifacts deployed on each. This post renders the same deployment struct...
简介 / Introduction部署图(Deployment Diagram)用于描述软件系统在硬件节点上的物理布局,以及各节点上运行的制品(artifact)。本篇分别用 PlantUML 和 Mermaid 绘制相同的部署结构,直观对比两者的语法差异。
PlantUML 版PlantUML 的部署图以 @startuml + deployment 关键字开头,用 node 定...
简介 / IntroductionComponent diagrams are a core part of architecture documentation, showing module boundaries, interface contracts, and dependency relationships. PlantUML has native component a...
简介 / Introduction组件图是架构设计中的核心图种之一,用来展示系统内部的模块划分、接口定义和依赖关系。PlantUML 的组件图原生支持 interface、多种箭头样式(实线、虚线、圆点)以及 component 块;Mermaid 通过 class 图的 <<interface>> 标记和类实现关系也能表达相同语义。本文用同一个业务场景——...