Load properties


/ Published in: Java
Save to your folder(s)



Copy this code and paste it in your HTML
  1. FileInputStream stream = null;
  2. configuration = new Properties();
  3. URL relProppath = getClass().getResource("../../config.properties");
  4. stream = new FileInputStream(relProppath.getFile());
  5. configuration.load(stream);
  6. stream.close();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.