Search
Calendar
June 2025
S M T W T F S
« May    
1234567
891011121314
15161718192021
22232425262728
2930  
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