简体   繁体   English

嵌套的.properties文件

[英]Nested .properties files

The Documentation of the java.util.Properties-class states: java.util.Properties类的文档指出:

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 问候,汤姆

Take a look at the constructor. 看一下构造函数。 You can hand it another Properties object which will be used to retrieve default values. 您可以将另一个属性对象交给它,该对象将用于检索默认值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM