我在包下创建属性文件resources/common/configure/
然后我创建代码
Properties prop = new Properties();
try {
//load a properties file
prop.load(new FileInputStream("resources/common/configure/commonData.properties"));
//get the property value and print it out
System.out.println(prop.getProperty("id"));
} catch (IOException ex) {
ex.printStackTrace();
}
但我收到以下错误
java.io.FileNotFoundException: (The system cannot find the path specified)
请让我知道如何获取此属性文件。