plantuml.jar和本地服务器之间的差异
我想知道:
- https://plantuml.com/download (pantuml.jar)
- Local Plantuml Server(http:// localhost:8080)
我一直在使用本地Plantuml Server从.puml使用:
cat ./ pilot.puml |从.puml生成.png文件| curl -v -h“ content -type:text/plain” - -data -binary @ -http:// localhost:8080/plantuml/png/output--&oftput-> out.png
但是,我需要每个文件。
我知道,使用 plantuml.jar 可以从一个单个单个生成多个.png,但恐怕它会将数据上传到Plantuml Public Server。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
本地服务器和罐子做同样的事情:从基于文本的图中生成图像。
区别在于前端。
两种情况下,这一代都在当地发生。
罐子可以更好地(并且更不安全)访问您的磁盘。如果要在同一目录中生成多个图表,则可能会很有用。或者,如果您包括路径经常更改(如果使用
!包括
)。另外,如果使用github,可以尝试 mermeraid 。
而且,如果您使用gitlab或拥有自己的git存储库具有更多控制权,则可以尝试。他们俩都允许您将图表嵌入回教中(ASCIIDOC甚至让您包含外部PUML文件)。
The local server and the jar do the same thing: generates image from the text based diagram.
The difference is the frontend.
The generation happens locally in both cases.
The jar can have a much better (and more insecure) access to your disks. It can be useful if you want to generate multiple diagrams in the same directory. Or if you're include paths changes frequently (if you use
!include
).Also if you use github you can try Mermaid.
And if you use gitlab or have your own git repository with more control over it you can try Asciidoc with diagrams. Both of them allows you to embed your diagrams in your readme (asciidoc even let you include external puml files).