i create the property file in the resources/common/configure/ package
then i create code
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(); }
but I got the following error:
java.io.FileNotFoundException: (The system cannot find the path specified)
please let me know how can I get this properties file.
source share