いくつかのプロパティファイルをロードしている間、人々は異なるアプローチに従っているので、私は上記の方法を使用して混乱しました...
Properties prop
= new Properties(new FileInputStream(new File("<path of the properties file>"));
使用しているものはほとんどありません。
Properties prop
= new Properties(getClass().getResourceAsStream("<path of the properties file>"));
いつ使用するのですか?