图1
1、在Finder中找到StartUML图标右击: ?...找到目录:\www\license\node 3、找到LicenseManagerDomain.js 在 try 前面加上: return { name:"0xcb", product:"StartUML
2、环境、软件准备 本次演示环境,我是在虚拟机Linux Centos7上操作,以下是安装的软件及版本: Docker:version 1.12.6 Git:version 2.10.1 GitLab:...```plantuml @startuml Tomcat -> GitLab: Hello, my name is Tomcat GitLab -> Tomcat: Hello, my name is...GitLab @enduml ``` 说明:这是一个最简单的示例,PlantUML 代码段使用 “`plantuml 作为闭合表示为 PlantUML 代码段,@startuml 和 @enduml...4.1 时序图 4.1.1 时序图-基本-1 ```plantuml @startuml title 时序图-基本-1 Tomcat -> GitLab: Hello, my name is Tomcat...4.1.3 时序图-扩展-3 ```plantuml @startuml title 时序图-扩展-3 actor 用户 #red participant 参与者1 #yellow participant
@startuml title Oauth2令牌颁发之授权码模式 actor User as user participant "User Agent" as userAgent participant...@startuml class Person { # String name # Integer age + void move() + void say() } class...后端技术栈 +++_ 项目框架 +++_ 数据存储 +++_ 运维部署 +++_ 其他 ++[#orange] 搭建项目骨架 ++[#1DBAAF] 项目部署 +++_ Windows下的部署 +++_ Linux...下使用Docker部署 +++_ Linux下使用Docker Compose部署 +++_ Linux下使用Jenkins自动化部署 --[#1DBAAF] 电商业务 ---_ 权限管理模块 ---_...@startuml actor actor agent agent artifact artifact boundary boundary card card cloud cloud component
@startuml 用户 -> 认证中心: 登录操作 认证中心 -> 缓存: 存放(key=token+ip,value=token)token 用户 <- 认证中心 : 认证成功返回token 用户...@startuml (First usecase) (Another usecase) as (UC2) usecase UC3 usecase (Last\nusecase) as UC4 @enduml...在后面的例子中,我们会看到角色的定义是可选的 @startuml :First Actor: :Another\nactor: as Man2 actor Woman3 actor :Last actor...在这些规则下,也可以绘制下列图形 @startuml Class01 <|-- Class02 Class03 *-- Class04 Class05 o-- Class06 Class07 .....Class08 Class09 -- Class10 @enduml 在这里插入图片描述 活动图(流程图) @startuml start if (condition A) then (yes) :
@startuml P: PENDING P: Pending for result N: NO_RESULT_YET N: Did not send the KYC check yet Y: APPROVED...@startuml interface Command { execute() undo() } class Invoker{ setCommand() } class Client...基本用法 @startuml A -> B: do something B -> A: do something @enduml ?...不用的箭头样式 @startuml Bob ->x Alice Bob -> Alice Bob ->> Alice Bob -\ Alice Bob \\- Alice Bob //-- Alice...@startuml C4_Elements !
自从上一篇文章发布后,大家给我推荐了不少绘图工具,比如startUML,rose,TikZ package,flowchart.js,matlab,R等等。感兴趣的可以自行研究。...Sequence diagram sequence diagram里每个角色被称为participant,participant之间可以有message,比如这样一个最基本的序列图: @startuml...如果你的participant的名字很复杂,可以使用 as 起别名: @startuml actor "星际穿越的\n男主角" as copper #99ff99 // (1) (2) (...如果明白了这两个例子,咱们继续: @startuml scale 1024*768 (1) [--> Tars: "They" provides data inside singularity...来个进阶的: @startuml scale 512*1024 |Romilly| (1) start repeat (2) :record the data from black
首先我们需要新建一个PlantUML文件,选择时序图; 我们可以通过PlantUML提供的语法来生成Oauth2的时序图,语法还是非常简单的,具体内容如下; @startuml title Oauth2...首先我们需要新建一个PlantUML文件,选择用例图,该用例图用于表示顾客、主厨、美食家与餐馆中各个用例之间的关系,具体内容如下; @startuml left to right direction actor...首先我们需要新建一个PlantUML文件,选择类图,该图用于表示Person、Student、Teacher类的结构,具体内容如下; @startuml class Person { # String...后端技术栈 +++_ 项目框架 +++_ 数据存储 +++_ 运维部署 +++_ 其他 ++[#orange] 搭建项目骨架 ++[#1DBAAF] 项目部署 +++_ Windows下的部署 +++_ Linux...下使用Docker部署 +++_ Linux下使用Docker Compose部署 +++_ Linux下使用Jenkins自动化部署 --[#1DBAAF] 电商业务 ---_ 权限管理模块 ---_
@startuml title Generalization class Vihical class Car class Trunck Vihical <|-- Car Vihical <|--...@startuml title Realization interface MoveBehavior class Fly class Run MoveBehavior <|.....@startuml title Aggregation class Computer class Keyboard class Mouse class Screen Computer o-- Keyboard...@startuml title Composition class Company class DepartmentA class DepartmentB Company *-- DepartmentA...@startuml title Dependency class Vihicle { move(MoveBehavior) } interface MoveBehavior { move
例如下面等用例图: @startuml P: PENDING P: Pending for result N: NO_RESULT_YET N: Did not send the KYC check...: Proof of Address (POA) too old P --> X : explicitly by KYC Y --> [*] R --> [*] X --> [*] @enduml @startuml...基本用法 @startuml A -> B: do something B -> A: do something @enduml 设置不同的角色 时序图角色可以分为: actor, boundary,...@startuml actor Foo1 boundary Foo2 control Foo3 entity Foo4 database Foo5 collections Foo6 Foo1 -> Foo2...@startuml C4_Elements !
1 2 3 4 5 6 7 8 9 @startuml Class01 "1" *-- "many" Class02 : contains Class03 o-- Class04 : aggregation...: 1 2 3 4 5 @startuml class Class01 class Class02 Class01 --> Class02 @enduml Diagram 还用关键字abstract...访问权限 符号 public + protected # default(package private) ~ private - 1 2 3 4 5 6 7 8 @startuml class Dummy...1 2 3 @startuml class Object > @enduml Diagram 使用note left of,note right of,note top of...1 2 3 4 @startuml class Object note top of Object : In java, every class\nextends this one.
@startuml start :start; #lightblue:Step 1; #2B99B9:Step 2</color...@startuml actor User1 #Red/Blue actor User2 #Blue/Pink User1 -> User2 : Hello @enduml 「类图」 ?...@startuml skinparam class { BackgroundColor Lightblue ArrowColor #0ACF97 BorderColor #d5d5d5 } skinparam
在这里插入图片描述 使用特性说明 在此处,我将一些常用的特性的元素以及其作用列了一个表格 在这里插入图片描述 基本运用 @startuml Alice -> Bob: Authen Req Bob -...-> Alice: Authen Resp @enduml 在这里插入图片描述 声明参与者 @startuml actor Foo1 boundary Foo2 control Foo3 entity...Foo4 : To entity Foo1 -> Foo5 : To database Foo1 -> Foo6 : To collections @enduml 在这里插入图片描述 给参与者添加颜色 @startuml...Authentication Req Bob -> Alice: Authentication Resp Bob ->L: Log transaction @enduml 在这里插入图片描述 生命线的激活与撤销 @startuml...C B --> A : RequestCreated deactivate B A -> User : Done deactivate A @enduml 在这里插入图片描述 给消息添加注释 @startuml
较早之前使用Delphi开发的开源UML工具StarUML,到5.0后多年来一直未有更新,从StarUML-v2.5.0官网看,它就是StartUML的最新版本,支持Windows、Mac OS X和Linux
@startuml Class01 <|-- Class02 Class03 *-- Class04 Class05 o-- Class06 Class07 .....Class12 Class13 --> Class14 Class15 ..> Class16 Class17 ..|> Class18 @enduml @startuml Class19 <--*...@startuml 类01 "1" *-- "many" 类02 : 包含 类03 o-- 类04 : 聚合 类05 --> "1" 类06 @enduml 在标签的开始或结束位置添加< 或...@startuml class 汽车 发动机 - 汽车 : 驱动 > 汽车 *- 轮子 : 拥有 4 > 汽车 -- 人 : < 所属 @enduml 备注和版型 版型通过类关键字(“...@startuml class Object > Object <|--- ArrayList note top of Object : In java, every class
之前的的效果是这样的: 现在的效果是这样的: 同样的时序图: @startuml participant Participant as Foo actor Actor...可以分析出几个关键点: 1 之前的样式其实是一种 theme (主题) 2 现在默认的主题已经和之前不同了 3 可以使用在 @startuml 后添加 skin rose 恢复之前的样式 2.2...3.1 单图处理 对于某个图形而言,可以在 @startuml 后添加 skin rose 来恢复使用老的主题。 虽然麻烦一些,但也挺有用。...可以在 插件的设置中配置,每个 @startuml 后都自动加 skin rose。 这样就不需要每个 puml 文件都加 skin rose 就可以使用老的主题了。
@startuml participant User User -> A: DoWork activate A A -> B: > activate B B -...@startuml box "Internal Service" #LightBlue participant Bob participant Alice end box participant Other
StaticClass { } sealed partial class ClassB{ } enum EnumType{ Apple, Orange, Grape } PlantUML @startuml...int Age); record Group(string GroupName) { public Person[] Members { get; init; } } PlantUML @startuml...@startuml class ClassB { + Name : string > > + Age : int > > } @enduml...name, age); public void MethodA(); [PlantUmlIgnore] public void MethodB(); } @startuml...new User() { Name = "DefaultUser", Age = "20" }; } } @startuml
领取专属 10元无门槛券
手把手带您无忧上云