嵌套 .properties 文件
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看一下构造函数。您可以将另一个 Properties 对象交给它,该对象将用于检索默认值。
Take a look at the constructor. You can hand it another Properties object which will be used to retrieve default values.