Should all resources in a java web application be uniquely named?
- by morgancodes
Trying to understand resources in java-land. I believe the following is true:
Resources loaded via the classpath have no namespace, they only have a file name.
It's wisest to always load resources via the classpath, never via the file system, even in unit tests.
Therefore, resources must always have unique file names, or collisions will occur.
Are there flaws in my assumptions or my conclusion?