public interface ClasspathResource extends Resource, ResourceView.HasMimeType, ResourceView.HasStreamSettings
path
.
For obtaining resources the Resources
infrastructure interface is using.
For example if your resource is located in the web module and has the following path: "com/company/app/web/images/image.png", ClassPathResource's path should be: "/com/company/app/web/images/image.png".
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPath() |
ClasspathResource |
setPath(java.lang.String path) |
getMimeType, setMimeType
getBufferSize, getCacheTime, getFileName, setBufferSize, setCacheTime, setFileName
ClasspathResource setPath(java.lang.String path)
java.lang.String getPath()