spring-framework / org.springframework.web.context.support / ServletContextResource / getFile

getFile

open fun getFile(): File

This implementation resolves "file:" URLs or alternatively delegates to ServletContext.getRealPath, throwing a FileNotFoundException if not found or not resolvable.

See Also
javax.servlet.ServletContext#getResource(String)javax.servlet.ServletContext#getRealPath(String)