We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8e693b commit 2c7d2f7Copy full SHA for 2c7d2f7
spring-web/src/main/java/org/springframework/web/context/support/ServletContextResource.java
@@ -166,8 +166,8 @@ public URL getURL() throws IOException {
166
*/
167
@Override
168
public File getFile() throws IOException {
169
- URL url = getURL();
170
- if (ResourceUtils.isFileURL(url)) {
+ URL url = this.servletContext.getResource(this.path);
+ if (url != null && ResourceUtils.isFileURL(url)) {
171
// Proceed with file system resolution...
172
return super.getFile();
173
}
0 commit comments