Table 4.1. Resource strings

Prefix Example Explanation
classpath: classpath:com/myapp/config.xml Loaded from the classpath.
file: file:/data/config.xml Loaded as a URL, from the
filesystem.
http: http://myserver/logo.png Loaded as a
URL.
(none) /data/config.xml Depends on the underlying
ApplicationContext.
Advertisements