Skip to content

Instantly share code, notes, and snippets.

@gaborgsomogyi
Created August 27, 2018 09:06
Show Gist options
  • Save gaborgsomogyi/cf61bd7affa05425e524c55185dad606 to your computer and use it in GitHub Desktop.
Save gaborgsomogyi/cf61bd7affa05425e524c55185dad606 to your computer and use it in GitHub Desktop.
ClassLoader cl = Thread.currentThread().getContextClassLoader();
URL loc = cl.getResource("log4j.properties");
System.out.println("Actually used log4j.properties: " + loc);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment