Maven local resource file not reading error

 is = getClass().getClassLoader().getResourceAsStream("Actuator.config");


Properties properties = new Properties();
InputStream is;
try {
// is = new FileInputStream(filePath);
is = getClass().getClassLoader().getResourceAsStream("Actuator.config");
properties.load(is);
} catch (IOException ex) {
ex.printStackTrace();
}
return properties;

Comments

Popular posts from this blog