1)
有向图dot文件
digraph R {
node [shape=record];
{ rank=same rA sA tA }
{ rank=same uB vB wB }
rA -> sA;
sA -> vB;
t -> rA;
uB -> vB;
wB -> u;
wB -> tA;
}
2)出现报警信息
Warning: flat edge between adjacent nodes one of which has a record shape - replace records with HTML-like labels
Edge rA -> sA
Error: lost rA sA edge
Error: lost uB vB edge
3)输出图片如下:

4)u888作为独立模块
digraph R {
node [shape=record];
{ rank=same rA sA tA }
{ rank=same uB vB wB }
rA -> sA;
sA -> vB;
t -> rA;
uB -> vB;
wB -> u;
wB -> tA;
u888;
}

5)
digraph R {
node [shape=record];
rA -> sA;
sA -> vB;
t -> rA;
uB -> vB;
wB -> u;
wB -> tA;
u888;
}

6)感觉最后这个才是我们想要的。

















![告别硬编码!用工厂模式优雅构建可扩展的 Spring Boot 应用 [特殊字符]](https://i-blog.csdnimg.cn/direct/c6a9ce6c86a14b44b07639ce0d5dd71a.png)
