Loading Resource from classpath


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

This gives the absolute path for the file log4j.properties


Copy this code and paste it in your HTML
  1. String fileName = getClass().getResource("/log4j.properties").getFile();

Report this snippet


Comments


You need to login to view comments.