嵌套 .properties 文件

发布于 2025-01-08 00:46:17 字数 170 浏览 3 评论 0原文

java.util.Properties-class 的文档指出:

属性列表可以包含另一个属性列表作为其“默认值”;如果在原始属性列表中找不到属性键,则搜索第二个属性列表。

其语法是什么?或者我误解了什么?

问候, 汤姆

The Documentation of the java.util.Properties-class states:

A property list can contain another property list as its "defaults"; this second property list is searched if the property key is not found in the original property list.

What's the syntax for that? Or am I misinterpreting something?

Regards,
Tom

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

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

发布评论

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

评论(1

溇涏 2025-01-15 00:46:17

看一下构造函数。您可以将另一个 Properties 对象交给它,该对象将用于检索默认值。

Take a look at the constructor. You can hand it another Properties object which will be used to retrieve default values.

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