plantuml.jar和本地服务器之间的差异

发布于 2025-02-06 22:00:01 字数 554 浏览 0 评论 0 原文

我想知道:

我一直在使用本地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。

I wanted to know what is the difference between:

I have been using a local PlantUML server to generate .png files from .puml with:

cat ./pilot.puml | curl -v -H "Content-Type: text/plain" --data-binary @- http://localhost:8080/plantuml/png/ --output - > out.png

However I need for each .puml a file and refer them in my README.md.

I know with plantuml.jar one can generate multiple .pngs from a single one but i am afraid it can upload my data to plantuml public server.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清风疏影 2025-02-13 22:00:01

本地服务器和罐子做同样的事情:从基于文本的图中生成图像。
区别在于前端。

  • 该服务器为您提供基于Web的UI和基于Web的API,
  • JAR为您提供了命令行接口。

两种情况下,这一代都在当地发生。

罐子可以更好地(并且更不安全)访问您的磁盘。如果要在同一目录中生成多个图表,则可能会很有用。或者,如果您包括路径经常更改(如果使用!包括)。

另外,如果使用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 server gives you a web based UI and web based API,
  • the jar gives you a command line interface.

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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文