Friday, June 22, 2012

Spring classpath*: vs classpath:

- classpath: will return first one found
- classpath: will use the first classpath from classloader?  http://blog.carbonfive.com/2007/05/17/using-classpath-vs-classpath-when-loading-spring-resources/  ,  http://tech-tauk.blogspot.hk/2010/04/difference-between-classpath-classpath.html
- classpath*: will return all resources from all classpath even they are having same name
- classpath*: + antstyle for no base directory (e.g. classpath*:**/foo.xml) can only find resources on filesystemp, not in JARs etc.