我对使用该方法感到困惑,因为在加载某些属性文件时,人们会采用不同的方法...
Properties prop
= new Properties(new FileInputStream(new File("<path of the properties file>"));
而且很少有人在使用...
Properties prop
= new Properties(getClass().getResourceAsStream("<path of the properties file>"));
何时使用哪一个?