我有一个名为
我的问题是:它们都从
prop.properties
的属性文件。在我的主要代码中,我同时使用了 System.getProperty()
和 properties.getProperty()
。我的问题是:它们都从
prop.properties
获取属性吗?还是说它们会从不同的地方获取属性,properties.getProperty()
从 prop.properties
获取属性,而 System.getProperty()
则从其他地方获取属性?
properties
来自哪里。如果Properties properties = System.getProperties();
,那么它们将是相同的。如果Properties propertes = new Properties();
,那么它们将不同。 - CodeBlind