Include servlet support for index.html resources

Issue: #54228642
This commit is contained in:
Phillip Webb
2013-07-29 13:03:42 -07:00
parent 772cc851a0
commit 36c3ceab97
2 changed files with 2 additions and 6 deletions

View File

@@ -88,10 +88,9 @@ public class WebMvcAutoConfiguration {
private static final String[] STATIC_INDEX_HTML_RESOURCES;
static {
STATIC_INDEX_HTML_RESOURCES = new String[CLASSPATH_RESOURCE_LOCATIONS.length];
STATIC_INDEX_HTML_RESOURCES = new String[RESOURCE_LOCATIONS.length];
for (int i = 0; i < STATIC_INDEX_HTML_RESOURCES.length; i++) {
STATIC_INDEX_HTML_RESOURCES[i] = CLASSPATH_RESOURCE_LOCATIONS[i]
+ "index.html";
STATIC_INDEX_HTML_RESOURCES[i] = RESOURCE_LOCATIONS[i] + "index.html";
}
}