Recent Posts
Archives

PostHeaderIcon (long tweet) Tip: How to know the location of a resource?

Case:

You have many files with the same names (log4.xml, applicationContext.xml, etc.), you need know which of them is loaded.

Tip:

On the debugger and/or in the logs, use an instruction similar to:

getClass().getClassLoader().getResource("log4j.xml")

Leave a Reply