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
Post a Comment